/* AI Studio — landing uslubi. Token asosida, yorug'/qorong'i avtomatik. */
:root {
  --bg: #f7f7fb;
  --surface: #ffffff;
  --surface-2: #f0f1f6;
  --border: #e3e4ec;
  --text: #15151f;
  --text-dim: #5b5d72;
  --text-faint: #8a8ca3;
  --brand-1: #7c5cff;
  --brand-2: #22d3c9;
  --brand-grad: linear-gradient(135deg, var(--brand-1), var(--brand-2));
  --accent-warn: #ff8a3d;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px -12px rgba(30, 20, 70, 0.18);
  --maxw: 1180px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0c0c14;
    --surface: #15151f;
    --surface-2: #1b1c29;
    --border: #262738;
    --text: #f3f3fa;
    --text-dim: #b4b6ca;
    --text-faint: #767893;
    --shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.55);
  }
}
:root[data-theme="dark"] {
  --bg: #0c0c14;
  --surface: #15151f;
  --surface-2: #1b1c29;
  --border: #262738;
  --text: #f3f3fa;
  --text-dim: #b4b6ca;
  --text-faint: #767893;
  --shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.55);
}

* { box-sizing: border-box; }
html { color-scheme: light dark; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 15px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Inter", sans-serif;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--text-dim); }
button { font: inherit; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; border: 1px solid transparent; cursor: pointer;
  font-weight: 600; font-size: 15px; transition: transform .15s ease, box-shadow .15s ease, opacity .15s;
  white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--brand-grad); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { opacity: .92; }
.btn-ghost { background: var(--surface); border-color: var(--border); color: var(--text); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-sm { padding: 8px 16px; font-size: 13px; }

/* --- logomark (neytral, brend tanlanmagan) --- */
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 17px; }
.logo-mark {
  width: 30px; height: 30px; border-radius: 9px; background: var(--brand-grad);
  position: relative; flex: none;
}
.logo-mark::before, .logo-mark::after {
  content: ""; position: absolute; background: #fff; border-radius: 2px;
}
.logo-mark::before { width: 12px; height: 2.5px; top: 13.75px; left: 9px; transform: rotate(45deg); }
.logo-mark::after { width: 12px; height: 2.5px; top: 13.75px; left: 9px; transform: rotate(-45deg); }

/* --- header --- */
header.site {
  position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--border);
}
header.site .bar { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
nav.main { display: flex; gap: 22px; align-items: center; }
nav.main a { color: var(--text-dim); font-size: 14px; font-weight: 500; }
nav.main a:hover { color: var(--text); }
.head-actions { display: flex; align-items: center; gap: 10px; }
.lang-switch { display: flex; border: 1px solid var(--border); border-radius: 999px; overflow: hidden; }
.lang-switch a { padding: 7px 12px; font-size: 13px; font-weight: 600; color: var(--text-faint); }
.lang-switch a.active { background: var(--surface-2); color: var(--text); }
.burger { display: none; background: none; border: none; color: var(--text); font-size: 22px; padding: 6px; }

/* --- hero --- */
.hero { padding: 64px 0 40px; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto -10%; height: 480px; z-index: -1;
  background: radial-gradient(60% 60% at 30% 20%, color-mix(in srgb, var(--brand-1) 28%, transparent), transparent 70%),
              radial-gradient(50% 50% at 80% 10%, color-mix(in srgb, var(--brand-2) 24%, transparent), transparent 70%);
}
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--border); font-size: 12.5px; font-weight: 700;
  color: var(--text-dim); margin-bottom: 18px; letter-spacing: .02em;
}
.hero h1 { font-size: clamp(32px, 5vw, 54px); line-height: 1.08; margin: 0 0 18px; font-weight: 800; letter-spacing: -0.01em; }
.hero h1 .grad { background: var(--brand-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: 17px; color: var(--text-dim); max-width: 520px; margin: 0 0 26px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 22px; }
.hero-stats { display: flex; gap: 26px; flex-wrap: wrap; }
.hero-stats div b { display: block; font-size: 22px; font-weight: 800; }
.hero-stats div span { font-size: 12.5px; color: var(--text-faint); }

.hero-visual {
  border-radius: 24px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow);
  padding: 18px; position: relative;
}
.hero-visual .screen {
  aspect-ratio: 9/11; border-radius: 16px; background: var(--brand-grad); position: relative; overflow: hidden;
}
.hero-visual .screen .shimmer {
  position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%);
  background-size: 220% 220%; animation: shimmer 3.2s linear infinite;
}
@keyframes shimmer { 0% { background-position: 150% 0; } 100% { background-position: -50% 0; } }
.hero-visual .badge-float {
  position: absolute; background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  padding: 8px 12px; font-size: 12.5px; font-weight: 700; box-shadow: var(--shadow); display: flex; gap: 6px; align-items: center;
}
.hero-visual .bf1 { top: 14%; left: -8%; }
.hero-visual .bf2 { bottom: 10%; right: -6%; }

/* --- marquee --- */
.marquee-wrap { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--surface); overflow: hidden; }
.marquee { display: flex; gap: 36px; padding: 16px 0; white-space: nowrap; animation: scroll 38s linear infinite; }
.marquee span { font-weight: 700; font-size: 13.5px; color: var(--text-faint); }
@keyframes scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee, .hero-visual .shimmer { animation: none; } }

/* --- sections --- */
section { padding: 72px 0; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.sec-head h2 { font-size: clamp(24px, 3vw, 32px); margin: 0 0 4px; font-weight: 800; }
.sec-head p { margin: 0; color: var(--text-dim); }
.view-all { font-size: 13.5px; font-weight: 700; color: var(--brand-1); white-space: nowrap; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.step .n { width: 34px; height: 34px; border-radius: 10px; background: var(--surface-2); display: flex; align-items: center; justify-content: center; font-weight: 800; margin-bottom: 14px; }
.step h3 { margin: 0 0 6px; font-size: 16px; }
.step p { margin: 0; color: var(--text-dim); font-size: 13.5px; }

.grid-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
  transition: transform .15s ease, box-shadow .15s ease; cursor: pointer;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card .cover { aspect-ratio: 4/3; display: flex; align-items: center; justify-content: center; font-size: 34px; position: relative; }
.card .cover img { width: 100%; height: 100%; object-fit: cover; }
.card .badge { position: absolute; top: 8px; left: 8px; background: rgba(0,0,0,.55); color: #fff; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 999px; }
.card .body { padding: 12px 14px 15px; }
.card .body h4 { margin: 0 0 4px; font-size: 14px; }
.card .body p { margin: 0; font-size: 12.5px; color: var(--text-dim); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card .price { margin-top: 8px; font-size: 12.5px; font-weight: 700; color: var(--brand-1); }

.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.price-tab { display: inline-flex; border: 1px solid var(--border); border-radius: 999px; padding: 4px; margin-bottom: 22px; background: var(--surface); }
.price-tab button { border: none; background: none; padding: 8px 18px; border-radius: 999px; font-weight: 700; font-size: 13.5px; color: var(--text-dim); cursor: pointer; }
.price-tab button.active { background: var(--brand-grad); color: #fff; }
.price-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; position: relative; }
.price-card.pop { border-color: var(--brand-1); box-shadow: var(--shadow); }
.price-card .tag { position: absolute; top: -11px; right: 18px; background: var(--brand-grad); color: #fff; font-size: 11px; font-weight: 800; padding: 4px 10px; border-radius: 999px; }
.price-card .coins { font-size: 30px; font-weight: 800; margin: 6px 0 2px; }
.price-card .uzs { font-size: 20px; font-weight: 700; margin: 10px 0 16px; }
.price-card .uzs span { font-size: 12.5px; color: var(--text-faint); font-weight: 500; }
.price-card ul { list-style: none; padding: 0; margin: 0 0 18px; font-size: 13px; color: var(--text-dim); }
.price-card li { padding: 4px 0; }

.faq-item { border-bottom: 1px solid var(--border); padding: 16px 0; }
.faq-item summary { cursor: pointer; font-weight: 700; font-size: 15px; list-style: none; display: flex; justify-content: space-between; }
.faq-item summary::after { content: "+"; color: var(--text-faint); font-weight: 400; }
.faq-item[open] summary::after { content: "–"; }
.faq-a { margin-top: 10px; color: var(--text-dim); font-size: 14px; }
.faq-a p { margin: 0 0 8px; }

footer.site { border-top: 1px solid var(--border); padding: 48px 0 28px; background: var(--surface); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 24px; margin-bottom: 28px; }
.foot-grid h5 { font-size: 13px; margin: 0 0 12px; color: var(--text-faint); text-transform: uppercase; letter-spacing: .04em; }
.foot-grid a, .foot-grid p { display: block; color: var(--text-dim); font-size: 13.5px; margin-bottom: 8px; }
.foot-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; font-size: 12.5px; color: var(--text-faint); border-top: 1px solid var(--border); padding-top: 18px; }

@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 320px; width: 100%; margin: 0 auto; }
  .grid-cards { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  nav.main { display: none; }
  .burger { display: inline-flex; }
  .hero { padding: 36px 0 28px; }
  .hero-stats { gap: 16px; }
  .grid-cards { grid-template-columns: 1fr 1fr; gap: 10px; }
  section { padding: 48px 0; }
  .foot-grid { grid-template-columns: 1fr; }
}

/* mobil nav panel */
#mnav {
  position: fixed; inset: 0; background: var(--bg); z-index: 60; display: none;
  flex-direction: column; padding: 20px;
}
#mnav.open { display: flex; }
#mnav a { padding: 16px 4px; font-size: 18px; font-weight: 700; border-bottom: 1px solid var(--border); }
#mnav .close { align-self: flex-end; font-size: 26px; background: none; border: none; color: var(--text); margin-bottom: 10px; }
