:root {
  color-scheme: light;
  --ink: #182230;
  --muted: #667085;
  --line: #e4e7ec;
  --bg: #f6f8fb;
  --navy: #152b49;
  --accent: #152b49;
  --gold: #d4af37;
  --safe-bg: #eef8f1;
  --safe-ink: #166534;
  --safe-line: #ccebd6;
  --warn-bg: #fff9eb;
  --warn-ink: #7a4b00;
  --warn-line: #f0d8a8;
  --danger-bg: #fff1f0;
  --danger-ink: #b42318;
  --danger-line: #fecdca;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

/* Header & Navigation */
header {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--navy);
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 850;
  font-size: 13px;
  letter-spacing: .04em;
  border: 1px solid rgba(212, 175, 55, 0.35);
}

.brand-text {
  font-size: 16px;
  font-weight: 850;
  letter-spacing: .04em;
  color: var(--ink);
}

.brand-text span {
  color: var(--muted);
  font-weight: 700;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-tab {
  text-decoration: none;
  font-size: 13px;
  font-weight: 650;
  color: var(--muted);
  padding: 8px 12px;
  border-radius: 9px;
  transition: color .15s ease, background .15s ease;
}

.nav-tab:hover {
  color: var(--ink);
  background: var(--bg);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.uid-badge {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 6px 11px;
  border-radius: 8px;
  white-space: nowrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  padding: 12px 18px;
  border-radius: 11px;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all .15s ease;
}

.btn-primary {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
  box-shadow: 0 4px 14px rgba(21, 43, 73, 0.16);
}

.btn-primary:hover {
  background: #1d395e;
  border-color: #1d395e;
  transform: translateY(-1px);
}

.btn-secondary {
  background: #fff;
  color: var(--ink);
  border-color: var(--line);
}

.btn-secondary:hover {
  border-color: #98a9c1;
  background: #fafbfd;
}

.btn-sm {
  font-size: 13px;
  padding: 8px 14px;
  border-radius: 9px;
}

/* Typography & Layout Tokens */
.eyebrow {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 8px;
}

h1 {
  font-size: clamp(28px, 4.5vw, 44px);
  line-height: 1.12;
  letter-spacing: -.03em;
  margin: 0 0 16px;
  color: var(--ink);
}

h2 {
  font-size: clamp(22px, 3.2vw, 30px);
  line-height: 1.2;
  letter-spacing: -.025em;
  margin: 0 0 12px;
  color: var(--ink);
}

h3 {
  font-size: 17px;
  line-height: 1.35;
  letter-spacing: -.015em;
  margin: 0 0 8px;
  color: var(--ink);
}

p {
  line-height: 1.6;
  color: #475467;
  margin: 0;
}

section {
  padding: 36px 0;
}

/* Cards & Surfaces */
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 8px 28px rgba(16, 24, 40, .04);
}

.card-navy {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}

.card-navy h2,
.card-navy h3,
.card-navy p {
  color: #fff;
}

.card-navy p {
  color: rgba(255, 255, 255, 0.82);
}

/* Status Badges */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
}

.status-safe {
  background: var(--safe-bg);
  color: var(--safe-ink);
  border: 1px solid var(--safe-line);
}

.status-warn {
  background: var(--warn-bg);
  color: var(--warn-ink);
  border: 1px solid var(--warn-line);
}

.status-danger {
  background: var(--danger-bg);
  color: var(--danger-ink);
  border: 1px solid var(--danger-line);
}

/* Hero Section */
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 24px;
  align-items: start;
  padding-top: 16px;
}

.hero-lead {
  font-size: 17px;
  color: #475467;
  margin-bottom: 22px;
  max-width: 600px;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 24px;
}

.kpi-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 18px;
  box-shadow: 0 4px 16px rgba(16, 24, 40, .03);
}

.kpi-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
  margin-bottom: 6px;
}

.kpi-value {
  font-size: 24px;
  font-weight: 850;
  letter-spacing: -.02em;
  color: var(--ink);
}

.kpi-sub {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}

/* Interactive Demo Widget (WebApp Preview) */
.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.step-counter {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}

.timer-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  background: var(--safe-bg);
  color: var(--safe-ink);
  border: 1px solid var(--safe-line);
  transition: all .2s ease;
}

.timer-badge.warning {
  background: var(--warn-bg);
  color: var(--warn-ink);
  border-color: var(--warn-line);
}

.timer-badge.danger {
  background: var(--danger-bg);
  color: var(--danger-ink);
  border-color: var(--danger-line);
}

.progress-track {
  width: 100%;
  height: 6px;
  background: var(--bg);
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: 18px;
  border: 1px solid var(--line);
}

.progress-fill {
  height: 100%;
  width: 33.3%;
  background: var(--navy);
  border-radius: 99px;
  transition: width .3s ease;
}

.question-text {
  font-size: 16px;
  font-weight: 650;
  line-height: 1.5;
  color: var(--ink);
  margin-bottom: 16px;
}

.options-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.option-btn {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  width: 100%;
  text-align: left;
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 12px 14px;
  font: inherit;
  font-size: 13.5px;
  line-height: 1.45;
  font-weight: 500;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease, transform .08s ease;
}

.option-btn:hover {
  border-color: #98a9c1;
  background: #fafbfd;
}

.option-btn:active,
.option-btn.selected {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}

.option-btn.correct {
  background: #166534 !important;
  color: #fff !important;
  border-color: #166534 !important;
  box-shadow: 0 4px 14px rgba(22, 101, 52, 0.25);
}

.option-btn.correct .option-key {
  background: rgba(255, 255, 255, 0.22) !important;
  color: #fff !important;
  border-color: transparent !important;
}

.option-btn.incorrect {
  background: #b42318 !important;
  color: #fff !important;
  border-color: #b42318 !important;
  animation: shake 0.35s ease;
}

.option-btn.incorrect .option-key {
  background: rgba(255, 255, 255, 0.22) !important;
  color: #fff !important;
  border-color: transparent !important;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}

.option-key {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  border-radius: 7px;
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 11px;
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 1px;
}

.option-btn:active .option-key,
.option-btn.selected .option-key {
  background: rgba(255, 255, 255, .16);
  border-color: rgba(255, 255, 255, .28);
  color: #fff;
}

.notice {
  border: 1px solid var(--warn-line);
  background: var(--warn-bg);
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 12px;
  line-height: 1.55;
  color: var(--warn-ink);
  margin-top: 14px;
}

/* Grid Layouts */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 22px;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--bg);
  border: 1px solid var(--line);
  font-size: 12px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 12px;
}

/* Scales & Progress Bars */
.scale-row {
  margin-bottom: 14px;
}

.scale-meta {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 650;
  margin-bottom: 6px;
}

/* Curriculum Module List */
.module-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
  transition: border-color .15s ease;
}

.module-card:hover {
  border-color: #98a9c1;
}

.module-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--navy);
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 4px 8px;
  border-radius: 6px;
  margin-bottom: 10px;
}

.lesson-list {
  list-style: none;
  padding: 0;
  margin: 10px 0 0;
  font-size: 13px;
  color: #475467;
}

.lesson-list li {
  padding: 5px 0;
  border-top: 1px dashed var(--line);
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.lesson-list li::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--navy);
  opacity: 0.45;
  margin-right: 6px;
  flex-shrink: 0;
  align-self: center;
}

/* Comparison Table */
.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

th, td {
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

th {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
  background: var(--bg);
  font-weight: 700;
}

/* FAQ Accordion */
.faq-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  margin-bottom: 10px;
  overflow: hidden;
}

.faq-btn {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 16px 20px;
  font: inherit;
  font-size: 15px;
  font-weight: 650;
  color: var(--ink);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.faq-body {
  padding: 0 20px 16px;
  font-size: 14px;
  color: #475467;
  display: none;
}

.faq-item.open .faq-body {
  display: block;
}

/* Footer */
footer {
  border-top: 1px solid var(--line);
  background: #fff;
  padding: 36px 0 48px;
  margin-top: 40px;
  color: var(--muted);
  font-size: 13px;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.hidden {
  display: none !important;
}

html, body {
  overflow-x: hidden;
  width: 100%;
}

@media (max-width: 920px) {
  .hero-grid,
  .grid-2,
  .grid-3,
  .grid-4,
  .kpi-grid {
    grid-template-columns: 1fr;
  }
  .nav-links {
    display: none;
  }
  .section-head {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 600px) {
  .wrap {
    padding: 12px 14px;
  }
  .header-bar {
    gap: 8px;
  }
  .header-actions .btn {
    display: none; /* Mobile Telegram WebAppda ortiqcha button gorizontal siljish keltirib chiqarmasligi uchun */
  }
  .header-actions .uid-badge {
    font-size: 11px;
    padding: 4px 8px;
  }
  .card {
    padding: 16px 14px;
    border-radius: 14px;
  }
  .card-navy {
    padding: 18px 14px;
  }
  h1 {
    font-size: 23px;
    line-height: 1.2;
  }
  h2 {
    font-size: 18px;
    line-height: 1.25;
  }
  h3 {
    font-size: 15.5px;
  }
  p {
    font-size: 13.5px;
    line-height: 1.55;
  }
  .hero-lead {
    font-size: 14.5px;
  }
  .hero-cta-group {
    flex-direction: column;
  }
  .hero-cta-group .btn {
    width: 100%;
  }

  /* Comparison Table Mobile Polish */
  .table-wrap {
    margin: 0 -4px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: #fff;
    -webkit-overflow-scrolling: touch;
  }
  table {
    min-width: 480px;
    font-size: 12.5px;
  }
  th, td {
    padding: 10px 12px;
  }
  th {
    font-size: 10.5px;
  }
  .table-check, .table-cross {
    width: 15px;
    height: 15px;
    margin-right: 4px;
  }
  .notice {
    font-size: 12.5px;
    padding: 10px 12px;
  }
}

/* ==============================================================================
   MODERN FINTECH ICONS & PAYMENT ASSETS (UZUM, CLICK, PAYME, USDT)
   ============================================================================== */

/* Radar Pulse Indicator */
.live-dot-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 9px;
  height: 9px;
  margin-right: 7px;
  vertical-align: middle;
}
.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
}
.live-dot-ping {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #10b981;
  opacity: 0.75;
  animation: radar-ping 1.6s cubic-bezier(0, 0, 0.2, 1) infinite;
}
@keyframes radar-ping {
  0% { transform: scale(0.8); opacity: 0.8; }
  75%, 100% { transform: scale(2.3); opacity: 0; }
}

/* Button Vector SVG Icons */
.btn-svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  stroke-width: 2.3;
}

/* Step Card Icon Badges */
.step-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
.step-icon-badge {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(21, 43, 73, 0.08), rgba(21, 43, 73, 0.02));
  border: 1px solid rgba(21, 43, 73, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.card:hover .step-icon-badge {
  transform: translateY(-2px);
  border-color: var(--navy);
  background: linear-gradient(135deg, rgba(21, 43, 73, 0.14), rgba(21, 43, 73, 0.04));
}

/* KPI Card Icons */
.kpi-card {
  position: relative;
  overflow: hidden;
}
.kpi-icon {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 28px;
  height: 28px;
  color: var(--navy);
  opacity: 0.18;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.kpi-card:hover .kpi-icon {
  opacity: 0.6;
  transform: scale(1.1);
}

/* 4 Psychometric Scales Badges & Icons */
.scale-badge-icon {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.scale-icon-svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

/* Module Card Micro-Icons */
.module-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.module-icon-svg {
  width: 20px;
  height: 20px;
  color: var(--navy);
  opacity: 0.75;
}

/* Modern FAQ Accordion with Rotating Chevron */
.faq-btn {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 16px 20px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  gap: 12px;
}
.faq-chevron {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--muted);
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), color 0.2s ease;
}
.faq-item.open .faq-chevron {
  transform: rotate(180deg);
  color: var(--navy);
}

/* Comparison Table Icons */
.table-check {
  width: 18px;
  height: 18px;
  color: #16a34a;
  vertical-align: middle;
  margin-right: 6px;
  flex-shrink: 0;
}
.table-cross {
  width: 18px;
  height: 18px;
  color: #dc2626;
  vertical-align: middle;
  margin-right: 6px;
  flex-shrink: 0;
}

/* ==============================================================================
   OFFICIAL PAYMENT METHODS (UZUM, CLICK, PAYME, USDT, UZCARD/HUMO)
   ============================================================================== */
.payments-container {
  margin-top: 18px;
}
.payments-title {
  font-size: 11.5px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.payment-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
}
.pay-chip {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 9px 11px;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 6px rgba(16, 24, 40, 0.03);
}
.pay-chip:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(16, 24, 40, 0.08);
}
.pay-chip-logo {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #ffffff;
}
.pay-chip-meta {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}
.pay-chip-meta strong {
  font-size: 12.5px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.pay-chip-meta span {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--muted);
}

.pay-payme:hover {
  border-color: #14D1C3;
}
.pay-click:hover {
  border-color: #0073FF;
}
.pay-uzum:hover {
  border-color: #7000FF;
}
.pay-usdt:hover {
  border-color: #26A17B;
}
.pay-national:hover {
  border-color: #0F3D89;
}
