:root {
  --blue: #1b6ef3;
  --blue-dark: #1557c7;
  --blue-soft: #e9f1fe;
  --red: #e5483b;
  --yellow: #f5b400;
  --green: #1e8e4e;
  --text: #1f2328;
  --muted: #5b6270;
  --line: #dde1e7;
  --bg-soft: #f6f8fb;
  --radius: 12px;
  --wrap: 1140px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: #fff;
  color: var(--text);
  font: 16px/1.6 "Manrope", -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
img, svg { max-width: 100%; }
h1, h2, h3 { font-weight: 600; line-height: 1.25; margin: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }

/* Tugmalar */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 22px; border-radius: 999px;
  font: inherit; font-weight: 600; font-size: 15px;
  border: 1px solid transparent; cursor: pointer; transition: background .15s, box-shadow .15s;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); box-shadow: 0 2px 8px rgba(27,110,243,.3); }
.btn-outline { background: #fff; color: var(--blue); border-color: var(--line); }
.btn-outline:hover { background: var(--blue-soft); }
.btn-text { background: none; color: var(--blue); padding: 0 12px; }
.btn-text:hover { background: var(--blue-soft); }

/* Header */
.header { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); backdrop-filter: blur(8px); }
.header .wrap { display: flex; align-items: center; gap: 28px; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--text); font-size: 19px; font-weight: 700; }
.logo:hover { text-decoration: none; }
.logo-mark { width: 30px; height: 30px; border-radius: 9px; background: var(--blue); display: grid; place-items: center; }
.logo-mark svg { width: 18px; height: 18px; }
.logo > span:not(.logo-mark) { color: var(--blue); margin-left: -10px; }
.nav { display: flex; gap: 4px; flex: 1; }
.nav a { color: var(--muted); font-weight: 500; font-size: 15px; padding: 8px 12px; border-radius: 8px; }
.nav a:hover { color: var(--text); background: var(--bg-soft); text-decoration: none; }
.nav a.active { color: var(--blue); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.burger { display: none; width: 40px; height: 40px; border: 0; background: none; cursor: pointer; border-radius: 8px; }
.burger span { display: block; width: 20px; height: 2px; margin: 4px auto; background: var(--text); border-radius: 2px; }

/* Hero */
.hero { padding: 72px 0 64px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: var(--blue-soft); color: var(--blue-dark); font-size: 13px; font-weight: 600; }
.hero h1 { font-size: 46px; letter-spacing: -0.02em; margin: 18px 0 16px; }
.hero h1 em { font-style: normal; color: var(--blue); }
.hero-sub { font-size: 18px; color: var(--muted); margin: 0 0 28px; max-width: 520px; }

.ai-box { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 18px; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; max-width: 540px; transition: border-color .15s, box-shadow .15s; }
.ai-box:focus-within { border-color: var(--blue); box-shadow: 0 0 0 4px var(--blue-soft); }
.ai-box input { flex: 1; min-width: 0; border: 0; outline: 0; font: inherit; font-size: 15px; background: none; color: var(--text); }
.ai-box .btn { height: 42px; flex-shrink: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.chip { border: 1px solid var(--line); background: #fff; color: var(--muted); font: inherit; font-size: 13px; padding: 5px 12px; border-radius: 999px; cursor: pointer; }
.chip:hover { border-color: var(--blue); color: var(--blue); }
.hero-note { font-size: 13px; color: var(--muted); margin-top: 18px; display: flex; align-items: center; gap: 6px; }
.hero-note svg { width: 16px; height: 16px; color: var(--green); flex-shrink: 0; }

/* Statistika paneli */
.panel { background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 12px 40px rgba(31,35,40,.08); overflow: hidden; }
.panel-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line); font-size: 14px; font-weight: 600; }
.status { font-size: 12px; font-weight: 600; color: var(--green); display: flex; align-items: center; gap: 6px; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.panel-body { padding: 18px; background: var(--bg-soft); }
.metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.metric { background: #fff; border-radius: 10px; padding: 12px 14px; border-top: 3px solid var(--c); }
.metric small { display: block; color: var(--muted); font-size: 12px; }
.metric b { font-size: 22px; font-weight: 700; }
.chart { background: #fff; border-radius: 10px; margin-top: 10px; padding: 12px 14px 6px; }
.chart-legend { display: flex; gap: 14px; font-size: 12px; color: var(--muted); }
.chart-legend i { display: inline-block; width: 10px; height: 3px; border-radius: 2px; margin-right: 6px; vertical-align: middle; }
.ad-preview { display: flex; gap: 12px; align-items: center; background: #fff; border-radius: 10px; margin-top: 10px; padding: 12px; }
.ad-thumb { width: 56px; height: 56px; border-radius: 8px; background: linear-gradient(135deg, #ffd1c9, #ffe9a8); flex-shrink: 0; }
.ad-preview small { color: var(--muted); font-size: 11px; }
.ad-preview b { display: block; font-size: 14px; }
.ad-preview p { margin: 0; font-size: 12px; color: var(--muted); }
.ad-tag { font-size: 10px; font-weight: 700; color: var(--text); border: 1px solid var(--line); border-radius: 4px; padding: 0 4px; margin-right: 4px; }

/* Bo'limlar */
.section { padding: 80px 0; }
.section.soft { background: var(--bg-soft); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section-head h2 { font-size: 34px; letter-spacing: -0.01em; }
.section-head p { color: var(--muted); font-size: 17px; margin: 12px 0 0; }

.places { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px 36px; padding: 28px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--muted); font-weight: 600; }
.places span { display: flex; align-items: center; gap: 8px; }
.places svg { width: 20px; height: 20px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.step-num { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--blue-soft); color: var(--blue); font-weight: 700; margin-bottom: 16px; }
.step h3 { font-size: 19px; margin-bottom: 8px; }
.step p { margin: 0; color: var(--muted); }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 32px; }
.feature .ic { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 16px; background: color-mix(in srgb, var(--c) 12%, #fff); color: var(--c); }
.feature .ic svg { width: 24px; height: 24px; }
.feature h3 { font-size: 18px; margin-bottom: 6px; }
.feature p { margin: 0; color: var(--muted); }

.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.plan { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 28px; display: flex; flex-direction: column; }
.plan.best { border: 2px solid var(--blue); position: relative; }
.plan.best::before { content: "Tavsiya etiladi"; position: absolute; top: -13px; left: 28px; background: var(--blue); color: #fff; font-size: 12px; font-weight: 600; padding: 3px 12px; border-radius: 999px; }
.plan h3 { font-size: 18px; color: var(--muted); font-weight: 600; }
.price { font-size: 34px; font-weight: 700; margin: 10px 0 4px; }
.price small { font-size: 15px; font-weight: 500; color: var(--muted); }
.plan ul { list-style: none; padding: 0; margin: 20px 0 28px; flex: 1; }
.plan li { padding: 6px 0 6px 28px; position: relative; }
.plan li::before { content: ""; position: absolute; left: 0; top: 11px; width: 16px; height: 16px; border-radius: 50%; background: var(--blue-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231b6ef3' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/10px no-repeat; }
.plans-note { text-align: center; color: var(--muted); font-size: 14px; margin-top: 28px; }

.faq { max-width: 760px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { font-weight: 600; font-size: 17px; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--blue); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--muted); margin: 12px 0 0; }

.cta { text-align: center; }
.cta-box { background: var(--blue); color: #fff; border-radius: 20px; padding: 56px 24px; }
.cta-box h2 { font-size: 32px; }
.cta-box p { opacity: .85; margin: 12px 0 28px; font-size: 17px; }
.cta-box .btn { background: #fff; color: var(--blue); }
.cta-box .btn:hover { background: var(--blue-soft); }

/* Footer */
.footer { border-top: 1px solid var(--line); background: var(--bg-soft); padding: 48px 0 28px; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 32px; }
.footer h4 { font-size: 14px; margin: 0 0 12px; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { padding: 4px 0; }
.footer li a { color: var(--muted); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); }

/* Hujjat sahifalari */
.doc { max-width: 780px; margin: 0 auto; padding: 56px 20px 80px; }
.doc h1 { font-size: 36px; margin-bottom: 8px; }
.doc h2 { font-size: 21px; margin: 36px 0 10px; }
.doc p, .doc li { color: #3a404a; }
.doc ul { padding-left: 22px; }

/* Kirish sahifasi */
.auth { min-height: calc(100vh - 64px); display: grid; place-items: center; padding: 40px 20px; background: var(--bg-soft); }
.auth-card { width: 100%; max-width: 420px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 36px 32px; text-align: center; }
.auth-card h1 { font-size: 26px; margin: 18px 0 8px; }
.auth-card .btn { width: 100%; margin-top: 24px; }
.google-btn { background: #fff; color: var(--text); border: 1px solid var(--line); }
.google-btn:hover { background: var(--bg-soft); }
.auth-draft { text-align: left; background: var(--blue-soft); color: var(--blue-dark); border-radius: 10px; padding: 12px 14px; font-size: 14px; margin-top: 20px; }
.auth-small { font-size: 13px; color: var(--muted); margin-top: 20px; }
.toast { margin-top: 14px; font-size: 14px; color: var(--muted); min-height: 21px; }

/* Moslashuvchanlik */
@media (max-width: 960px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; }
  .hero h1 { font-size: 38px; }
  .steps, .features, .plans { grid-template-columns: 1fr; }
  .plans { max-width: 440px; margin: 0 auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .nav { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; background: #fff; border-bottom: 1px solid var(--line); padding: 8px 12px 16px; }
  .nav.open { display: flex; }
  .burger { display: block; }
  .header .wrap { gap: 12px; justify-content: space-between; }
  .header-actions .btn-text { display: none; }
  .header-actions .btn { height: 38px; padding: 0 16px; font-size: 14px; }
  .hero { padding: 40px 0; }
  .hero h1 { font-size: 30px; }
  .hero-sub { font-size: 16px; }
  .ai-box { flex-direction: column; align-items: stretch; border-radius: 16px; padding: 12px; }
  .ai-box input { padding: 4px 4px 8px; }
  .section { padding: 56px 0; }
  .section-head h2 { font-size: 26px; }
  .metrics { gap: 6px; }
  .metric { padding: 10px; }
  .metric b { font-size: 17px; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-box h2 { font-size: 24px; }
  .doc h1 { font-size: 28px; }
}
