/* ==================================================================
   Илмий ҳамроҳ — marketing site
   Brand: deep violet + green, ink stage, paper content, Alegreya
   (display) + Manrope (body). Continues the anketa-app / bot system.
=================================================================== */

:root {
  --ink-950: #0b0e1a;
  --ink-900: #12162a;
  --ink-800: #1a2036;
  --paper-0: #fbf7f0;
  --paper-1: #f3ecdf;
  --paper-line: #e4d9c4;
  --text-900: #211c14;
  --text-600: #5c5544;
  --text-450: #857d68;
  --on-ink-1: #f3f1fb;
  --on-ink-2: #b9b3d6;
  --accent-700: #382c80;
  --accent-600: #4a3aa7;
  --accent-500: #6b52b0;
  --accent-100: #ece8f7;
  --green-700: #0c8a1e;
  --green-500: #5a9a3f;
  --green-100: #e6f1de;

  --radius-lg: 22px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-1: 180ms;
  --dur-2: 320ms;

  --shadow-card: 0 1px 2px rgba(33, 28, 20, 0.05), 0 18px 36px -20px rgba(33, 28, 20, 0.25);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }

body {
  margin: 0;
  background: var(--paper-0);
  color: var(--text-900);
  font-family: "Manrope", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

h1, h2, h3 {
  font-family: "Alegreya", Georgia, serif;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0;
  text-wrap: balance;
}

.kicker {
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent-600);
  margin: 0 0 10px;
}
.kicker-onstage { color: #b9a9e8; }

.section { padding: 76px 0; }
.section h2 { font-size: clamp(26px, 3.6vw, 36px); line-height: 1.18; max-width: 26ch; }
.section-lead { font-size: 15.5px; color: var(--text-600); max-width: 60ch; margin-top: 12px; line-height: 1.6; }

/* ---------------- buttons ---------------- */

.btn {
  appearance: none;
  border: none;
  text-decoration: none;
  font: inherit;
  font-weight: 700;
  font-size: 14.5px;
  border-radius: 999px;
  padding: 12px 20px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform var(--dur-1) var(--ease-out), box-shadow var(--dur-1) var(--ease-out), background var(--dur-1) var(--ease-out), color var(--dur-1) var(--ease-out);
}
.btn svg { width: 16px; height: 16px; }
.btn:active { transform: scale(0.98); }
.btn-lg { padding: 15px 26px; font-size: 15.5px; }

.btn-primary {
  background: var(--accent-600);
  color: #fff;
  box-shadow: 0 10px 22px -10px rgba(74, 58, 167, 0.55);
}
.btn-primary:hover { background: var(--accent-700); }

.btn-onlight {
  background: var(--ink-950);
  color: #fff;
}
.btn-onlight:hover { background: #000; }

.btn-ghost {
  background: transparent;
  color: var(--text-900);
  border: 1.5px solid var(--paper-line);
}
.btn-ghost:hover { border-color: var(--accent-500); color: var(--accent-600); }

.btn-ghost-line {
  background: transparent;
  color: var(--on-ink-1);
  padding: 10px 6px;
}
.btn-ghost-line:hover { color: #fff; }

/* ---------------- header ---------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 14, 26, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.header-row {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  color: var(--on-ink-1);
  margin-right: auto;
}
.brand-mark { width: 24px; height: 24px; color: #a693e0; flex: none; }
.brand-mark svg { width: 100%; height: 100%; }
.brand-word { font-family: "Alegreya", serif; font-weight: 700; font-size: 17px; letter-spacing: -0.01em; white-space: nowrap; }

.nav-links { display: flex; gap: 26px; }
.nav-links a {
  color: var(--on-ink-2);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: color var(--dur-1) var(--ease-out);
}
.nav-links a:hover { color: #fff; }

.header-cta { display: flex; align-items: center; gap: 6px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
}
.nav-toggle span { width: 20px; height: 1.6px; background: #fff; border-radius: 2px; }

/* ---------------- hero ---------------- */

.hero {
  background:
    radial-gradient(680px 420px at 16% 0%, rgba(107, 82, 176, 0.35), transparent 60%),
    radial-gradient(560px 420px at 100% 10%, rgba(90, 154, 63, 0.2), transparent 55%),
    linear-gradient(180deg, var(--ink-950) 0%, var(--ink-900) 55%, var(--ink-800) 100%);
  color: var(--on-ink-1);
  padding: 76px 0 92px;
}
.hero-inner { max-width: 780px; }
.hero .eyebrow {
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #b9a9e8;
  margin: 0 0 18px;
}
.hero h1 {
  font-size: clamp(32px, 5.4vw, 50px);
  line-height: 1.14;
  color: #fff;
}
.hero h1 em { font-style: italic; color: #b9a9e8; }
.hero-sub {
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--on-ink-2);
  max-width: 62ch;
  margin: 22px 0 30px;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-cta .btn-ghost { color: var(--on-ink-1); border-color: rgba(255, 255, 255, 0.22); }
.hero-cta .btn-ghost:hover { border-color: #a693e0; color: #fff; }

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 13px;
  color: var(--on-ink-2);
}
.hero-trust b { color: #fff; font-family: "Alegreya", serif; font-size: 15px; }

/* ---------------- pain chips ---------------- */

.pain-section h2 { max-width: 20ch; margin-bottom: 30px; }

.chip-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.chip {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 16px;
  border-radius: var(--radius-md);
  background: #fff;
  border: 1px solid var(--paper-line);
}
.chip-ico { flex: none; width: 22px; height: 22px; color: var(--accent-600); margin-top: 1px; }
.chip b { font-size: 14px; }
.chip p { margin: 3px 0 0; font-size: 13px; color: var(--text-600); line-height: 1.45; }

/* ---------------- stats (on dark) ---------------- */

.stats-section {
  background: linear-gradient(180deg, var(--ink-900), var(--ink-950));
  color: var(--on-ink-1);
}
.onstage { color: #fff; max-width: 22ch; margin-bottom: 32px; }

.stat-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.stat-tile {
  background: rgba(255, 255, 255, 0.03);
  padding: 26px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.stat-num {
  font-family: "Alegreya", serif;
  font-weight: 700;
  font-size: 30px;
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.stat-label { font-size: 12.5px; color: var(--on-ink-2); line-height: 1.4; }
.stats-note { font-size: 13px; color: var(--on-ink-2); margin-top: 20px; max-width: 60ch; }

/* ---------------- why (editorial list) ---------------- */

.why-section h2 { max-width: 18ch; margin-bottom: 34px; }
.why-list { display: grid; grid-template-columns: 1fr 1fr; gap: 30px 40px; }
.why-row { display: flex; gap: 16px; align-items: flex-start; }
.why-ico {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: var(--accent-100);
  color: var(--accent-600);
  display: flex;
  align-items: center;
  justify-content: center;
}
.why-ico svg { width: 20px; height: 20px; }
.why-row h3 { font-size: 17px; margin-bottom: 5px; }
.why-row p { margin: 0; font-size: 13.5px; color: var(--text-600); line-height: 1.55; }

/* ---------------- program timeline ---------------- */

.program-section h2 { max-width: 24ch; }

.timeline {
  list-style: none;
  margin: 40px 0 0;
  padding: 0;
  position: relative;
  max-width: 780px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 8px;
  bottom: 8px;
  width: 1.5px;
  background: var(--paper-line);
}
.tl-item {
  display: flex;
  gap: 20px;
  padding-bottom: 30px;
  position: relative;
}
.tl-item:last-child { padding-bottom: 0; }
.tl-num {
  flex: none;
  width: 41px;
  height: 41px;
  border-radius: 50%;
  background: #fff;
  border: 1.5px solid var(--paper-line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Alegreya", serif;
  font-weight: 700;
  font-size: 16px;
  color: var(--accent-600);
  position: relative;
  z-index: 1;
}
.tl-bonus .tl-num { background: var(--accent-600); color: #fff; border-color: var(--accent-600); font-size: 15px; }
.tl-item h3 { font-size: 16.5px; margin-bottom: 5px; padding-top: 8px; }
.tl-item p { margin: 0; font-size: 13.5px; color: var(--text-600); line-height: 1.55; max-width: 58ch; }

/* ---------------- audience ---------------- */

.audience-section {
  background: linear-gradient(180deg, var(--ink-950), var(--ink-900));
  color: var(--on-ink-1);
}
.audience-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px 32px;
  margin-top: 8px;
}
.audience-item { border-top: 1.5px solid rgba(255, 255, 255, 0.16); padding-top: 14px; }
.audience-item b { font-family: "Alegreya", serif; font-size: 17px; color: #fff; font-weight: 700; }
.audience-item p { margin: 6px 0 0; font-size: 13.5px; color: var(--on-ink-2); line-height: 1.5; }

/* ---------------- pricing ---------------- */

.pricing-section h2 { max-width: 20ch; }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-top: 34px;
  align-items: stretch;
}
.price-card {
  position: relative;
  background: #fff;
  border: 1.5px solid var(--paper-line);
  border-radius: var(--radius-lg);
  padding: 22px 18px 20px;
  display: flex;
  flex-direction: column;
}
.price-card.is-featured {
  border-color: var(--accent-600);
  box-shadow: var(--shadow-card);
  transform: translateY(-6px);
}
.price-badge {
  position: absolute;
  top: -12px;
  left: 18px;
  background: var(--accent-600);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.03em;
  padding: 5px 11px;
  border-radius: 999px;
}
.price-card h3 { font-size: 18px; }
.price-tag { font-family: "Alegreya", serif; font-weight: 700; font-size: 32px; margin: 10px 0 2px; color: var(--text-900); }
.price-sub { font-size: 12.5px; color: var(--text-450); margin: 0 0 16px; font-weight: 600; }
.price-features { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.price-features li {
  font-size: 12.5px;
  line-height: 1.4;
  padding-left: 20px;
  position: relative;
  color: var(--text-600);
}
.price-features li.on { color: var(--text-900); }
.price-features li.on::before {
  content: "";
  position: absolute; left: 0; top: 4px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--green-100);
  box-shadow: inset 0 0 0 1.5px var(--green-700);
}
.price-features li.off { color: var(--text-450); text-decoration: line-through; opacity: 0.6; }
.price-features li.off::before {
  content: "";
  position: absolute; left: 3px; top: 6px;
  width: 8px; height: 1.5px;
  background: var(--text-450);
}
.price-result { font-size: 12px; color: var(--text-600); border-top: 1px solid var(--paper-line); padding-top: 12px; margin: 0; line-height: 1.4; }
.price-buy { width: 100%; margin-top: 16px; }
.price-note { font-size: 12.5px; color: var(--text-450); margin-top: 26px; max-width: 70ch; line-height: 1.6; }

/* ---------------- process ---------------- */

.process-section {
  background: linear-gradient(180deg, var(--ink-900), var(--ink-950));
  color: var(--on-ink-1);
}
.process-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-top: 10px;
}
.process-step { border-top: 2px solid var(--accent-500); padding-top: 16px; }
.process-num { font-family: "Alegreya", serif; font-weight: 700; font-size: 26px; color: #a693e0; }
.process-step h3 { font-size: 16px; color: #fff; margin: 10px 0 6px; }
.process-step p { margin: 0; font-size: 13px; color: var(--on-ink-2); line-height: 1.5; }

.exode-note {
  margin-top: 44px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: 22px;
}
.exode-ico {
  flex: none;
  width: 40px; height: 40px;
  border-radius: 11px;
  background: rgba(90, 154, 63, 0.18);
  color: #8cd472;
  display: flex; align-items: center; justify-content: center;
}
.exode-ico svg { width: 20px; height: 20px; }
.exode-note h3 { font-size: 16px; color: #fff; margin: 0 0 6px; }
.exode-note p { margin: 0; font-size: 13.5px; color: var(--on-ink-2); line-height: 1.55; max-width: 60ch; }
.exode-badges { display: flex; gap: 10px; margin-top: 14px; }
.exode-badges a {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--on-ink-1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  padding: 8px 14px;
  text-decoration: none;
}
.exode-badges a:hover { border-color: #a693e0; color: #fff; }

/* ---------------- FAQ ---------------- */

.faq-section h2 { max-width: 18ch; }
.faq-list { margin-top: 30px; max-width: 780px; }
.faq-item { border-bottom: 1px solid var(--paper-line); }
.faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  font-size: 15px;
  color: var(--text-900);
  padding: 18px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.faq-q .chev { width: 18px; height: 18px; flex: none; color: var(--text-450); transition: transform var(--dur-2) var(--ease-out); }
.faq-q[aria-expanded="true"] .chev { transform: rotate(180deg); color: var(--accent-600); }
.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--dur-2) var(--ease-out);
}
.faq-a > p { overflow: hidden; margin: 0; font-size: 13.5px; color: var(--text-600); line-height: 1.6; max-width: 68ch; }
.faq-item.open .faq-a { grid-template-rows: 1fr; }
.faq-a { display: grid; }
.faq-a p { min-height: 0; padding-bottom: 0; }
.faq-item.open .faq-a p { padding-bottom: 18px; }

/* ---------------- final CTA ---------------- */

.final-cta {
  padding: 0;
}
.cta-band {
  background: linear-gradient(120deg, var(--accent-600), var(--green-700));
  border-radius: var(--radius-lg);
  padding: 52px 40px;
  text-align: center;
  color: #fff;
  margin: 0 auto 0;
  max-width: 1120px;
}
.cta-band h2 { color: #fff; max-width: none; }
.cta-band p { font-size: 15px; color: rgba(255, 255, 255, 0.88); margin: 14px 0 26px; }
.final-cta { margin-bottom: 90px; margin-top: -10px; }

/* ---------------- footer ---------------- */

.site-footer { background: var(--ink-950); color: var(--on-ink-2); padding: 30px 0; }
.footer-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 8px; }
.footer-brand .brand-mark { width: 18px; height: 18px; }
.footer-brand .brand-word { font-size: 14px; color: var(--on-ink-1); }
.footer-copy { font-size: 12px; margin: 0; }
.footer-tg { color: var(--on-ink-2); font-size: 12.5px; text-decoration: none; font-weight: 600; }
.footer-tg:hover { color: #fff; }

/* ---------------- responsive ---------------- */

@media (max-width: 980px) {
  .chip-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-band { grid-template-columns: repeat(2, 1fr); }
  .why-list { grid-template-columns: 1fr; }
  .audience-list { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .price-card.is-featured { transform: none; grid-column: span 2; }
  .process-row { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .nav-links { display: none; }
  .header-cta .btn-ghost-line { display: none; }
  .nav-toggle { display: flex; }
  .nav-links.is-open {
    display: flex;
    flex-direction: column;
    gap: 2px;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--ink-950);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 8px 20px 16px;
  }
  .nav-links.is-open a { padding: 10px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
  .header-cta .btn-primary { padding: 9px 16px; font-size: 13px; }
  .section { padding: 54px 0; }
  .chip-grid { grid-template-columns: 1fr; }
  .stat-band { grid-template-columns: repeat(2, 1fr); }
  .audience-list { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .price-card.is-featured { grid-column: auto; }
  .process-row { grid-template-columns: 1fr; }
  .exode-note { flex-direction: column; }
  .cta-band { padding: 40px 24px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: 0.001ms !important; }
}
