/* Marketix landing. Tokenlar ilovadagi MMColor / MMSpacing / MMRadius bilan bir xil.
   Uslub: ilovaning o'zi — Telegram-ko'k aksent, kulrang "grouped" fon, oq yumaloq kartalar, capsule tugmalar. */
:root {
  --primary: #229ED9;
  --canvas: #FFFFFF;
  --background: #EFEFF4;
  --field: #E9EBEF;
  --surface: #FFFFFF;
  --separator: #D8DADF;
  --text: #000;
  --text-2: #707579;
  --text-3: #A2ACB4;
  --glass: rgba(255, 255, 255, .72);
  /* kategoriya kartalaridagi pastel ranglar (ilovadagi kabi) */
  --lilac: #E6DCFB; --blue: #D6EAFB; --peach: #FBE3D6; --green: #D9F2DF;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", "Segoe UI", Roboto, system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --primary: #2AABEE;
    --canvas: #0E1621;
    --background: #0E1621;
    --field: #242F3D;
    --surface: #17212B;
    --separator: #2B3948;
    --text: #F5F5F5;
    --text-2: #708499;
    --text-3: #526170;
    --glass: rgba(23, 33, 43, .72);
    --lilac: #231C3F; --blue: #14293D; --peach: #33231F; --green: #14291F;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0; font-family: var(--font); color: var(--text); background: var(--background);
  line-height: 1.5; -webkit-font-smoothing: antialiased; font-size: 17px;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.wrap--narrow { width: min(760px, 100% - 32px); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 20px;
  border-radius: 999px; font-weight: 600; font-size: 15px; background: var(--primary); color: #fff;
  transition: opacity .15s, transform .15s;
}
.btn:hover { opacity: .9; } .btn:active { transform: scale(.98); }
.store {
  display: inline-flex; align-items: center; gap: 12px; padding: 0 26px 0 20px; min-height: 58px;
  border-radius: 999px; background: #000; color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.18);
  transition: transform .15s;
}
.store:hover { transform: translateY(-1px); }
.store span { display: flex; flex-direction: column; line-height: 1.05; text-align: left; }
.store small { font-size: 11px; opacity: .85; }
.store b { font-size: 21px; font-weight: 600; letter-spacing: -.01em; }
.store--light { background: #fff; color: #000; box-shadow: none; }
.store[aria-disabled="true"] { cursor: default; }

/* ---------- Nav: suzuvchi shisha capsule (iOS 26 Liquid Glass ruhida) ---------- */
.nav { position: sticky; top: 0; z-index: 50; padding-top: 12px; margin-bottom: -68px; }
.nav__in {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 56px; padding: 0 8px 0 16px;
  border-radius: 999px; background: var(--glass);
  backdrop-filter: saturate(180%) blur(24px); -webkit-backdrop-filter: saturate(180%) blur(24px);
  box-shadow: 0 0 0 1px rgba(127,127,127,.16), 0 8px 24px -8px rgba(0,0,0,.14);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px; letter-spacing: -.02em; }
.brand img { border-radius: 26%; }
.nav__links { display: flex; gap: 26px; font-weight: 500; font-size: 15px; color: var(--text-2); }
.nav__links a:hover { color: var(--text); }
.nav__end { display: flex; align-items: center; gap: 10px; }
.lang { display: flex; padding: 3px; border-radius: 999px; background: var(--field); }
.lang button {
  font: 600 12px var(--font); border: 0; color: var(--text-2); background: transparent; cursor: pointer;
  padding: 6px 10px; border-radius: 999px;
}
.lang button.is-on { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px rgba(0,0,0,.12); }

/* ---------- Telefon ramkasi ---------- */
.device {
  --dw: 290px; width: var(--dw); padding: 9px; background: #151517;
  border-radius: calc(var(--dw) * .19);
  box-shadow: inset 0 0 0 1.5px #3a3a3e, 0 40px 70px -30px rgba(15, 25, 60, .38);
}
.device img { width: 100%; height: auto; border-radius: calc((var(--dw) - 18px) * .135); }

/* ---------- Hero ---------- */
.hero { overflow: hidden; padding-top: 96px; }
.hero__in { display: grid; grid-template-columns: 1fr 1fr; align-items: end; gap: 24px; min-height: 640px; }
.hero__copy { align-self: center; padding: 40px 0 64px; max-width: 520px; }
.hero__icon { border-radius: 26%; margin-bottom: 28px; box-shadow: 0 10px 28px -10px rgba(0,0,0,.35); }
h1 { font-size: clamp(36px, 5vw, 58px); line-height: 1.06; letter-spacing: -.035em; font-weight: 700; margin-bottom: 18px; }
.lead { font-size: 20px; color: var(--text-2); margin-bottom: 32px; max-width: 30em; }
.hero__meta { margin-top: 16px; font-size: 14px; color: var(--text-3); }
.hero__devices { position: relative; height: 600px; }
.hero__devices .device { position: absolute; bottom: -90px; }
.device--a { left: 6%; --dw: 300px; z-index: 2; }
.device--b { right: 0; --dw: 280px; bottom: -190px !important; }

/* ---------- Stories ---------- */
.stories { padding: 96px 0 40px; display: grid; gap: 40px; }
.story { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 48px; }
.story:nth-child(even) .panel { order: 2; }
.panel { height: 520px; border-radius: 36px; overflow: hidden; display: flex; justify-content: center; align-items: flex-start; padding-top: 52px; }
.panel .device { --dw: 270px; }
.panel--lilac { background: var(--lilac); } .panel--blue { background: var(--blue); }
.panel--peach { background: var(--peach); } .panel--green { background: var(--green); }
.story__text { max-width: 420px; }
h2 { font-size: clamp(28px, 3.6vw, 40px); line-height: 1.1; letter-spacing: -.03em; font-weight: 700; margin-bottom: 14px; }
.story__text p { font-size: 19px; color: var(--text-2); }

/* ---------- More: iOS "grouped list" ---------- */
.more { padding: 72px 0 24px; }
.more h2 { margin-bottom: 24px; }
.more__list {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--separator);
  border-radius: 24px; overflow: hidden;
}
.more__list li { background: var(--surface); padding: 26px 26px 28px; }
.more__list img { width: 28px; height: 28px; margin-bottom: 16px; }
h3 { font-size: 18px; font-weight: 600; letter-spacing: -.01em; margin-bottom: 4px; }
.more__list p { color: var(--text-2); font-size: 16px; }

/* ---------- FAQ ---------- */
.faq { padding: 80px 0 24px; }
.faq h2 { margin-bottom: 24px; }
.faq__list { background: var(--surface); border-radius: 24px; padding: 0 24px; }
.faq details + details { border-top: 1px solid var(--separator); }
.faq summary {
  cursor: pointer; list-style: none; padding: 20px 0; font-weight: 600; font-size: 18px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; width: 9px; height: 9px; border: solid var(--text-3); border-width: 0 2px 2px 0; transform: rotate(45deg); transition: transform .2s; flex: none; margin-right: 4px; }
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq details p { padding: 0 0 20px; color: var(--text-2); }

/* ---------- CTA (ilovadagi banner kabi) ---------- */
.cta { padding: 80px 0 72px; }
.cta__card {
  background: linear-gradient(135deg, #6a1fee 0%, #3a0eb0 100%); color: #fff; border-radius: 36px;
  padding: 64px 24px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.cta__icon { border-radius: 26%; box-shadow: 0 10px 30px -8px rgba(0,0,0,.45); margin-bottom: 8px; }
.cta__card h2 { margin: 0; }
.cta__card p { font-size: 19px; opacity: .85; margin-bottom: 18px; }

/* ---------- Footer ---------- */
.foot { border-top: 1px solid var(--separator); }
.foot__in { display: flex; justify-content: space-between; align-items: center; gap: 16px 28px; padding: 28px 0; flex-wrap: wrap; }
.foot .brand { font-size: 16px; }
.foot__links { display: flex; gap: 22px; flex-wrap: wrap; font-size: 14px; font-weight: 500; }
.foot__links a { color: var(--text-2); }
.foot__links a:hover { color: var(--primary); }
.foot small { color: var(--text-3); font-size: 13px; }

/* ---------- Hujjat sahifalari (terms / privacy) ---------- */
body.legal .nav { margin-bottom: 0; }
.doc { padding: 40px 0 88px; }
.doc__tabs { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--field); margin-bottom: 28px; flex-wrap: wrap; }
.doc__tabs a { padding: 8px 18px; border-radius: 999px; font-weight: 600; font-size: 14px; color: var(--text-2); }
.doc__tabs a.is-on { background: var(--primary); color: #fff; }
.doc h1 { font-size: clamp(30px, 5vw, 44px); margin-bottom: 8px; }
.doc__meta { color: var(--text-3); font-size: 14px; margin-bottom: 20px; }
.doc__intro { font-size: 18px; color: var(--text-2); margin-bottom: 12px; }
.doc section { background: var(--surface); border-radius: 20px; padding: 22px 24px; margin-top: 14px; }
.doc h2 { font-size: 19px; letter-spacing: -.01em; margin: 0 0 8px; }
.doc section p { color: var(--text-2); }
.doc section a, .doc__back { color: var(--primary); font-weight: 600; }
.doc__back { display: inline-block; margin-top: 28px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav__links { display: none; }
  .hero__in { grid-template-columns: 1fr; min-height: 0; }
  .hero__copy { padding: 24px 0 8px; max-width: none; }
  .hero__devices { height: 440px; margin-top: 16px; }
  .device--a { left: calc(50% - 175px); --dw: 250px; }
  .device--b { right: calc(50% - 185px); --dw: 230px; bottom: -150px !important; }
  .hero__devices .device { bottom: -70px; }
  .stories { padding-top: 56px; gap: 32px; }
  .story { grid-template-columns: 1fr; gap: 24px; }
  .story:nth-child(even) .panel { order: 0; }
  .panel { height: 440px; padding-top: 40px; }
  .panel .device { --dw: 240px; }
  .story__text { max-width: none; padding: 0 4px; }
  .more__list { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .more__list { grid-template-columns: 1fr; }
  .btn--sm { display: none; }
  .foot__in { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } html { scroll-behavior: auto; } }

/* Hero telefonlari pastda yumshoq so'nadi */
.hero__devices::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 90px; z-index: 3; pointer-events: none;
  background: linear-gradient(to bottom, transparent, var(--background));
}
