/* Mexribon's Kurash AI — landing page.
   Same palette as the app: warm cream, one golden accent, white cards. */

:root {
  --bg: #F3EEE4;
  --bg-2: #FBF7F0;
  --surface: #FFFFFF;
  --primary: #F5A83C;
  --primary-dark: #E0932A;
  --primary-soft: #FCEBD0;
  --ink: #2D2A26;
  --ink-2: #6F6A61;
  --muted: #9B968C;
  --line: #EAE4D8;
  --radius: 22px;
  --shadow: 0 10px 30px rgba(45, 42, 38, .07);
  --shadow-lg: 0 24px 60px rgba(45, 42, 38, .12);
  color-scheme: light;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
}
img, svg { display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: -.01em; }
p { margin: 0; }

.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.container--narrow { max-width: 760px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 52px; padding: 0 24px;
  border-radius: 999px; border: 0;
  background: var(--primary); color: #fff;
  font: 800 16px/1 'Nunito', sans-serif;
  box-shadow: 0 10px 24px rgba(245, 168, 60, .35);
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(245, 168, 60, .42); background: var(--primary-dark); }
.btn:active { transform: scale(.97); }
.btn--small { height: 40px; padding: 0 18px; font-size: 14px; }
.btn--ghost { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.btn--ghost:hover { background: var(--surface); box-shadow: var(--shadow-lg); }
.btn--light { background: #fff; color: var(--ink); box-shadow: none; }
.btn--light:hover { background: #fff; box-shadow: 0 10px 24px rgba(0,0,0,.12); }
.btn--full { width: 100%; }
.btn--disabled, .btn--disabled:hover {
  background: rgba(255,255,255,.35); color: rgba(45,42,38,.55);
  box-shadow: none; transform: none; cursor: default;
}
:focus-visible { outline: 3px solid var(--primary-dark); outline-offset: 3px; border-radius: 12px; }

.pill-label {
  display: inline-block; padding: 6px 14px; border-radius: 999px;
  background: var(--primary-soft); color: var(--primary-dark);
  font-size: 13px; font-weight: 800; letter-spacing: .02em;
}
.pill-label--light { background: rgba(255,255,255,.28); color: #fff; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(243, 238, 228, .82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.header.is-scrolled { border-bottom-color: var(--line); }
.header__row { display: flex; align-items: center; gap: 16px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; white-space: nowrap; }
.brand__mark {
  width: 36px; height: 36px; border-radius: 12px; background: var(--primary);
  display: grid; place-items: center; box-shadow: 0 6px 14px rgba(245,168,60,.35);
}
.brand__mark svg { width: 20px; height: 20px; fill: #fff; }
.brand__name b { font-weight: 900; }
.nav { display: flex; gap: 26px; margin-left: auto; font-weight: 700; color: var(--ink-2); }
.nav a { transition: color .15s ease; }
.nav a:hover { color: var(--ink); }
.header__actions { display: flex; align-items: center; gap: 12px; }
.lang {
  display: flex; padding: 3px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line);
}
.lang button {
  border: 0; background: transparent; cursor: pointer;
  padding: 5px 10px; border-radius: 999px;
  font: 800 12px/1 'Nunito', sans-serif; color: var(--muted);
  transition: background .18s ease, color .18s ease;
}
.lang button.is-active { background: var(--primary); color: #fff; }

/* ---------- Hero ---------- */
.hero { padding: 56px 0 80px; }
.hero__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(36px, 5.4vw, 58px); font-weight: 900; margin: 18px 0 18px; }
.lead { font-size: 18px; color: var(--ink-2); max-width: 540px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero__facts { list-style: none; padding: 0; margin: 36px 0 0; display: flex; gap: 32px; }
.hero__facts li { display: flex; flex-direction: column; }
.hero__facts b { font-size: 30px; font-weight: 900; line-height: 1; }
.hero__facts span { color: var(--muted); font-weight: 700; font-size: 14px; margin-top: 4px; }

.hero__phone { position: relative; display: flex; justify-content: center; }
.phone {
  position: relative; width: 290px; height: 590px; border-radius: 46px;
  background: #1f1d1a; padding: 12px;
  box-shadow: var(--shadow-lg), inset 0 0 0 2px #3a3631;
  animation: float 6s ease-in-out infinite;
}
.phone__notch {
  position: absolute; top: 20px; left: 50%; transform: translateX(-50%);
  width: 86px; height: 24px; border-radius: 20px; background: #1f1d1a; z-index: 2;
}
.phone__screen {
  height: 100%; border-radius: 36px; background: var(--bg);
  padding: 54px 16px 16px; overflow: hidden; position: relative;
  display: flex; flex-direction: column; gap: 12px;
}
.m-top { display: flex; justify-content: space-between; align-items: center; }
.m-hi { font-weight: 900; font-size: 17px; }
.m-sub { font-size: 10.5px; color: var(--muted); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 180px; }
.m-avatar {
  width: 34px; height: 34px; border-radius: 50%; background: var(--primary); color: #fff;
  display: grid; place-items: center; font-weight: 800; font-size: 12px;
}
.m-hero {
  background: var(--primary); border-radius: 18px; padding: 12px;
  display: flex; align-items: center; justify-content: space-between; color: #fff;
}
.m-hero div { display: flex; flex-direction: column; }
.m-hero span, .m-hero small { font-size: 9px; font-weight: 700; color: var(--ink); }
.m-hero b { font-size: 20px; font-weight: 900; line-height: 1.2; }
.m-hero b.sm { font-size: 13px; line-height: 1.8; }
.m-hero i { width: 1px; height: 30px; background: rgba(255,255,255,.55); }
.m-tip {
  background: #fff; border-radius: 14px; padding: 10px; font-size: 10.5px; font-weight: 600;
  display: flex; gap: 8px; align-items: flex-start; box-shadow: 0 4px 12px rgba(0,0,0,.04);
}
.m-dot { flex: 0 0 18px; height: 18px; border-radius: 6px; background: var(--primary-soft); }
.m-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.m-tile {
  background: #fff; border-radius: 16px; padding: 10px; height: 88px;
  display: flex; flex-direction: column; justify-content: space-between;
  box-shadow: 0 4px 12px rgba(0,0,0,.04);
}
.m-tile b { font-size: 11px; line-height: 1.2; }
.m-ic { width: 26px; height: 26px; border-radius: 9px; background: var(--primary-soft); }
.m-nav {
  margin-top: auto; background: #fff; border-radius: 999px; height: 46px; padding: 5px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px;
  box-shadow: 0 6px 16px rgba(0,0,0,.06);
}
.m-nav span { border-radius: 999px; position: relative; }
.m-nav span::after {
  content: ''; position: absolute; inset: 0; margin: auto; width: 14px; height: 14px;
  border-radius: 5px; background: var(--muted); opacity: .6;
}
.m-nav span.on { background: var(--primary); }
.m-nav span.on::after { background: #fff; opacity: 1; }

.float-card {
  position: absolute; background: #fff; border-radius: 18px; padding: 12px 14px;
  box-shadow: var(--shadow-lg); display: flex; gap: 10px; align-items: center;
}
.float-card b { display: block; font-weight: 900; font-size: 14px; }
.float-card small { display: block; color: var(--muted); font-size: 12px; font-weight: 600; }
.float-card--a { left: -6px; bottom: 110px; max-width: 220px; animation: float 6s ease-in-out -2s infinite; }
.float-card--b { right: 0; top: 36px; flex-direction: column; align-items: flex-start; gap: 0; animation: float 6s ease-in-out -4s infinite; }
.float-card--b b { font-size: 22px; color: var(--primary-dark); }
.fc-ic {
  width: 34px; height: 34px; border-radius: 11px; background: var(--primary); color: #fff;
  display: grid; place-items: center; font-size: 16px;
}
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section--tint { background: var(--bg-2); }
.section__head { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.section__head h2 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 900; margin: 14px 0 12px; }
.section__head p { color: var(--ink-2); font-size: 17px; }

/* ---------- Features ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  position: relative; background: var(--surface); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow);
  transition: transform .22s ease, box-shadow .22s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card h3 { font-size: 19px; font-weight: 800; margin: 18px 0 8px; }
.card p { color: var(--ink-2); font-size: 15px; }
.ic {
  width: 50px; height: 50px; border-radius: 16px; background: var(--primary-soft);
  display: grid; place-items: center;
}
.ic svg { width: 26px; height: 26px; fill: none; stroke: var(--primary-dark); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.card--ai .ic { background: var(--primary); }
.card--ai .ic svg { stroke: #fff; }

/* AI murabbiy — ajralib turadigan kartochka */
.card--featured {
  overflow: hidden;
  isolation: isolate;
  border: 1.5px solid rgba(245, 168, 60, .45);
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(245, 168, 60, .30) 0%, rgba(245, 168, 60, 0) 55%),
    radial-gradient(80% 70% at 0% 100%, rgba(252, 235, 208, .9) 0%, rgba(252, 235, 208, 0) 60%),
    linear-gradient(160deg, #FFF8EC 0%, #FFFFFF 70%);
  animation: aiGlow 3.6s ease-in-out infinite;
}
.card--featured > *:not(.card__spark):not(.tag) { position: relative; z-index: 1; }
.card--featured .tag { z-index: 2; }
.card__spark {
  position: absolute; right: -26px; bottom: -30px; z-index: 0;
  width: 150px; height: 150px;
  fill: rgba(245, 168, 60, .14);
  animation: sparkSpin 14s linear infinite;
  pointer-events: none;
}
.card--featured .tag { animation: tagPulse 2.4s ease-in-out infinite; }
.mini-chat { margin-top: 16px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.mini-chat__q {
  align-self: flex-end; max-width: 90%;
  background: var(--primary); color: #fff;
  padding: 8px 12px; border-radius: 14px 14px 4px 14px;
  font-size: 13px; font-weight: 700; line-height: 1.35;
  box-shadow: 0 6px 14px rgba(245, 168, 60, .30);
}
.mini-chat__a {
  display: inline-flex; gap: 5px; padding: 10px 14px;
  background: #fff; border-radius: 14px 14px 14px 4px;
  box-shadow: 0 4px 12px rgba(45, 42, 38, .08);
}
.mini-chat__a i {
  width: 7px; height: 7px; border-radius: 50%; background: var(--primary);
  animation: dot 1.2s ease-in-out infinite;
}
.mini-chat__a i:nth-child(2) { animation-delay: .15s; }
.mini-chat__a i:nth-child(3) { animation-delay: .3s; }
@keyframes aiGlow {
  0%, 100% { box-shadow: 0 10px 30px rgba(245, 168, 60, .16); }
  50%      { box-shadow: 0 14px 40px rgba(245, 168, 60, .34); }
}
@keyframes sparkSpin { to { transform: rotate(360deg); } }
@keyframes tagPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.1); } }
@keyframes dot { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }
.tag {
  position: absolute; top: 26px; right: 26px; padding: 4px 10px; border-radius: 999px;
  background: var(--primary); color: #fff; font-size: 12px; font-weight: 800;
}
.card--wide { grid-column: span 3; display: grid; grid-template-columns: auto 1fr auto; column-gap: 20px; align-items: center; }
.card--wide .ic { grid-row: span 2; }
.card--wide h3 { margin: 0 0 6px; }
.card--wide .tag { position: static; grid-column: 3; grid-row: 1; justify-self: end; }
.card--wide p { grid-column: 2; }
.chain { grid-column: 3; grid-row: 2; display: flex; align-items: center; gap: 8px; }
.chain span {
  padding: 8px 14px; border-radius: 14px; background: var(--primary); color: #fff;
  font-weight: 800; font-size: 14px; white-space: nowrap;
}
.chain i { font-style: normal; color: var(--primary-dark); font-weight: 900; }

/* ---------- Why ---------- */
.why { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.why__item { background: var(--surface); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.why__item h3 { font-size: 18px; font-weight: 800; margin: 18px 0 8px; }
.why__item p { color: var(--ink-2); font-size: 15px; }

/* ---------- Steps ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: s; }
.steps li { background: var(--surface); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.steps li > span {
  width: 44px; height: 44px; border-radius: 50%; background: var(--primary); color: #fff;
  display: grid; place-items: center; font-weight: 900; font-size: 18px;
}
.steps h3 { font-size: 19px; font-weight: 800; margin: 18px 0 8px; }
.steps p { color: var(--ink-2); font-size: 15px; }

/* ---------- Download ---------- */
.section--download {
  background: linear-gradient(160deg, #F5A83C 0%, #E8952A 100%);
  color: #fff; border-radius: 40px; margin: 0 16px;
}
.section__head--light p { color: rgba(255,255,255,.9); }
.downloads { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.dl {
  background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.3);
  border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; gap: 12px;
  backdrop-filter: blur(6px);
}
#dl-android { background: #fff; color: var(--ink); border-color: #fff; box-shadow: 0 24px 50px rgba(120, 70, 0, .22); }
.dl__ic {
  width: 52px; height: 52px; border-radius: 16px; background: rgba(255,255,255,.25);
  display: grid; place-items: center;
}
#dl-android .dl__ic { background: var(--primary-soft); }
.dl__ic svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
#dl-android .dl__ic svg { stroke: var(--primary-dark); }
.dl h3 { font-size: 22px; font-weight: 900; }
.dl__meta { font-weight: 700; opacity: .8; margin-top: -6px; }
.dl__note { font-size: 14px; opacity: .92; }
.dl__soon { font-size: 14px; font-weight: 700; color: var(--primary-dark); }
.dl__help { font-size: 14px; color: var(--ink-2); }
.dl__help summary { cursor: pointer; font-weight: 800; color: var(--ink); }
.dl__help ol { margin: 10px 0 0; padding-left: 20px; display: grid; gap: 4px; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; }
.faq details {
  background: var(--surface); border-radius: 18px; padding: 0 22px; box-shadow: var(--shadow);
}
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 0; font-weight: 800; font-size: 17px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+'; flex: 0 0 30px; height: 30px; border-radius: 50%; background: var(--primary-soft);
  color: var(--primary-dark); display: grid; place-items: center; font-size: 20px; font-weight: 800;
  transition: transform .25s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--ink-2); padding: 0 0 20px; }

/* ---------- Footer ---------- */
.footer { padding: 56px 0 40px; }
.footer__row { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; }
.footer__note { color: var(--muted); font-size: 14px; margin-top: 12px; max-width: 520px; }
.to-top {
  width: 48px; height: 48px; border-radius: 50%; background: var(--surface); box-shadow: var(--shadow);
  display: grid; place-items: center; font-weight: 900; font-size: 20px; flex: 0 0 48px;
}

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.2,1); }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .nav { display: none; }
  .header__actions { margin-left: auto; }
  .hero__grid { grid-template-columns: 1fr; }
  .why { grid-template-columns: 1fr 1fr; }
  .hero { padding-top: 32px; }
  .hero__phone { margin-top: 12px; }
  .features, .downloads, .steps { grid-template-columns: 1fr 1fr; }
  .card--wide { grid-column: span 2; }
}
@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .header__row { height: 62px; gap: 10px; }
  .brand__name { display: none; }
  .btn--small { padding: 0 14px; }
  .hero h1 { margin-top: 14px; }
  .lead { font-size: 16.5px; }
  .hero__cta .btn { flex: 1 1 100%; }
  .hero__facts { gap: 24px; }
  .phone { width: 262px; height: 534px; }
  .float-card--a { left: 0; bottom: 80px; max-width: 190px; }
  .float-card--b { right: 0; top: -28px; }
  .phone__screen { padding: 50px 14px 14px; gap: 10px; }
  .m-tile { height: 70px; }
  .m-tip { font-size: 10px; }
  .section { padding: 64px 0; }
  .features, .downloads, .steps, .why { grid-template-columns: 1fr; }
  .card--wide { grid-column: auto; display: block; }
  .card--wide h3 { margin: 18px 0 8px; }
  .card--wide .tag { position: absolute; }
  .chain { margin-top: 16px; flex-wrap: wrap; }
  .section--download { margin: 0 8px; border-radius: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .phone, .float-card, .card--featured, .card__spark, .card--featured .tag, .mini-chat__a i { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .card { transition: none; }
}
