:root{
  --bg0:#070b14;
  --bg1:#0b1220;

  --glass:rgba(255,255,255,.06);
  --glass2:rgba(255,255,255,.04);
  --stroke:rgba(255,255,255,.10);
  --stroke2:rgba(255,255,255,.14);

  --text:#eaf1ff;
  --muted:rgba(234,241,255,.72);
  --muted2:rgba(234,241,255,.55);

  --blue:#4f7cff;
  --blue2:#6ea3ff;

  --radius:18px;
  --shadow:0 18px 60px rgba(0,0,0,.55);
  --shadow2:0 10px 26px rgba(0,0,0,.35);
}

/* ===== reset ===== */
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  color:var(--text);
  background:
    radial-gradient(900px 500px at 75% 15%, rgba(40,90,255,.25), transparent 55%),
    radial-gradient(700px 420px at 20% 20%, rgba(120,40,255,.20), transparent 55%),
    radial-gradient(900px 520px at 70% 80%, rgba(0,190,255,.12), transparent 60%),
    linear-gradient(180deg, var(--bg0), var(--bg1) 45%, var(--bg0));
}

/* ===== topbar ===== */
.topbar{
  position:sticky;
  top:0;
  z-index:50;
  background: rgba(7,11,20,.55);
  backdrop-filter: blur(12px);
  border-bottom:1px solid rgba(255,255,255,.06);
}
.topbar-inner{
  max-width:1120px;
  margin:0 auto;
  padding:14px 16px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
}
.brand{
  display:flex;
  align-items:center;
  gap:10px;
  text-decoration:none;
  color:var(--text);
  font-weight:1000;
}
.brand-logo{
  width:50px;height: 50px;object-fit:contain;
  filter: drop-shadow(0 6px 14px rgba(0,0,0,.35));
}
.brand-name{letter-spacing:.2px}
.topbar-right{
  display:flex;
  align-items:center;
  gap:14px;
  font-size:13px;
  color:var(--muted);
}
.topbar-right a{
  color:var(--muted);
  text-decoration:none;
}
.topbar-right a:hover{color:var(--text)}
.login-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:9px 12px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.06);
  color:var(--text) !important;
  font-weight:900;
}
.login-btn:hover{background:rgba(255,255,255,.10)}

/* ===== main spacing ===== */
main{
  max-width:1120px;
  margin:0 auto;
  padding:22px 16px 70px;
}

/* ===== hero ===== */
.hero{
  border-radius:22px;
  border:1px solid rgba(255,255,255,.10);
  background:
    radial-gradient(560px 340px at 86% 20%, rgba(80,120,255,.35), transparent 60%),
    radial-gradient(420px 280px at 70% 70%, rgba(0,190,255,.16), transparent 60%),
    rgba(255,255,255,.04);
  box-shadow: var(--shadow2);
  backdrop-filter: blur(12px);
  padding:26px;
  display:grid;
  grid-template-columns: 1.15fr .85fr;
  gap:18px;
  align-items:center;
  overflow:hidden; /* rasm tashqariga chiqmasin */
}

.hero-left h1{
  margin:0 0 10px;
  font-size:42px;
  line-height:1.08;
  letter-spacing:-.4px;
}
.hero-left p{
  margin:0 0 16px;
  font-size:13px;
  color:var(--muted);
  max-width:560px;
}

/* button */
.btn{
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.06);
  color:var(--text);
  padding:10px 14px;
  border-radius:14px;
  font-weight:1000;
  cursor:pointer;
}
.btn:hover{background:rgba(255,255,255,.10)}
.btn.primary{
  border:0;
  color:#071022;
  background: linear-gradient(135deg, var(--blue), var(--blue2));
}
.btn.primary:hover{filter:brightness(1.03)}

.hero-actions{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  align-items:center;
  margin-bottom:12px;
}

/* meta */
.hero-meta{
  display:flex;
  align-items:center;
  gap:12px;
  margin-top:6px;
  color:var(--muted);
  font-size:13px;
}
.avatars{display:flex;align-items:center}
.avatar{
  width:30px;height:30px;border-radius:999px;
  border:2px solid rgba(255,255,255,.35);
  background:rgba(255,255,255,.10);
  margin-left:-10px;
  box-shadow:0 6px 16px rgba(0,0,0,.25);
}
.avatar:first-child{margin-left:0}
.reviews-row{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}
.stars{color:#f6c453;font-weight:1000;letter-spacing:1px}
.tests-today{margin-top:4px;color:var(--muted2)}

/* hero right image box */
.hero-right{
  display:flex;
  justify-content:flex-end;
  align-items:center;
}
.hero-frame{
  width:100%;
  max-width:520px;
  aspect-ratio: 16/9;
  border-radius:18px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.18);
  overflow:hidden; /* rasm ichida qolsin */
  display:flex;
  align-items:center;
  justify-content:center;
}
.hero-frame img{
  width:100%;
  height:100%;
  object-fit:contain; /* kesmaydi, sig'diradi */
  object-position:center;
  display:block;
  filter: drop-shadow(0 18px 50px rgba(0,0,0,.35));
}

/* ===== how section ===== */
.how{
  margin-top:22px;
}
.how h2{
  margin:0 0 14px;
  font-size:22px;
  color:var(--text);
  letter-spacing:-.2px;
}

/* 3 cards row (sizda 3ta) */
.feature-cards{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:14px;
}

/* cards */
.feature-card{
  text-align:left;
  border-radius:18px;
  border:1px solid rgba(255,255,255,.10);
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.03));
  backdrop-filter: blur(10px);
  padding:16px;
  box-shadow: 0 12px 34px rgba(0,0,0,.30);
  cursor:pointer;
  transition:.16s ease;
  color:var(--text);
}
.feature-card:hover{
  transform: translateY(-3px);
  border-color: rgba(255,255,255,.16);
  box-shadow: 0 18px 55px rgba(0,0,0,.45);
}



.feature-title{
  font-size:14px;
  font-weight:1000;
  margin:0 0 6px;
}
.feature-desc{
  margin:0;
  font-size:12px;
  color:var(--muted);
}

/* ===== flyout menu ===== */
.flyout-overlay{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.50);
  opacity:0;
  pointer-events:none;
  transition:.18s ease;
  z-index:9998;
}
.flyout-overlay.open{
  opacity:1;
  pointer-events:auto;
}

.flyout-panel{
  position:fixed;
  right:18px;
  top:74px;
  width:min(390px, calc(100vw - 36px));
  background: rgba(12,18,32,.92);
  border:1px solid rgba(255,255,255,.12);
  border-radius:18px;
  padding:14px;
  box-shadow: 0 28px 80px rgba(0,0,0,.65);
  backdrop-filter: blur(14px);

  opacity:0;
  transform: translateY(-10px);
  pointer-events:none;
  transition:.18s ease;
  z-index:9999;
  color:var(--text);
}
.flyout-panel.open{
  opacity:1;
  transform: translateY(0);
  pointer-events:auto;
}

.flyout-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:12px;
  padding-bottom:10px;
  border-bottom:1px solid rgba(255,255,255,.08);
}
.flyout-title{
  font-size:15px;
  font-weight:1000;
}
.flyout-desc{
  margin-top:2px;
  font-size:12px;
  color:var(--muted);
}
.flyout-close{
  width:34px;height:34px;
  border-radius:10px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.06);
  color:var(--text);
  cursor:pointer;
}
.flyout-close:hover{background:rgba(255,255,255,.10)}

.flyout-links{
  display:grid;
  gap:10px;
  padding-top:12px;
}
.flyout-links a{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:12px 12px;
  border-radius:14px;
  text-decoration:none;
  color:var(--text);
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
}
.flyout-links a:hover{
  background: rgba(255,255,255,.08);
}
.flyout-links a span{
  font-size:12px;
  color:var(--muted);
}

.flyout-bottom{
  margin-top:12px;
  padding-top:12px;
  border-top:1px solid rgba(255,255,255,.08);
}
.pay-btn{
  width:100%;
  border:0;
  border-radius:14px;
  padding:12px 14px;
  cursor:pointer;
  font-weight:1000;
  color:#071022;
  background: linear-gradient(135deg, var(--blue), var(--blue2));
}
.pay-btn:hover{filter:brightness(1.03)}
.pay-note{
  text-align:center;
  margin-top:8px;
  font-size:12px;
  color:var(--muted);
}

/* How it Works title center */
.how h2{
  width: 100%;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.how h2{
  text-align: center;
  margin: 50px auto 30px;
}

/* ===== FOOTER ===== */
.footer{
  margin-top: auto;
  padding: 16px 0;
  border-top: 1px solid rgba(255,255,255,.08);
  color: rgba(234,241,255,.55);
}

.footer-inner{
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.footer-left{
  font-size: 12px;
}

.footer-right{
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-right a{
  font-size: 12px;
  color: rgba(234,241,255,.55);
  text-decoration: none;
}

.footer-right a:hover{
  color: #eaf1ff;
}

html, body{
  height: 100%;
}

body{
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main{
  flex: 1 0 auto;
}

.feature-ico img{
  max-width: 60px;          /* PNG KICHRAYADI */
  max-height: 60px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}
/* ikon o'rtada */
.feature-ico{
  margin: 0 auto 12px;
}

/* title o'rtada */
.feature-title{
  text-align: center;
  width: 100%;
}

/* description o'rtada */
.feature-desc{
  text-align: center;
  width: 100%;
}

.feature-card{
  display: flex;
  flex-direction: column;
  align-items: center;      /* gorizontal markaz */
  justify-content: center;  /* vertikal markaz */
  text-align: center;
}

/* Start button har doim bosiladigan bo'lsin */
#startBtn,
.start-btn,
.btn.primary {
  position: relative;
  z-index: 50;
  pointer-events: auto;
}

/* Hero chap blok ham ustida tursin */
.hero-left {
  position: relative;
  z-index: 40;
}

/* Agar hero-card ustida overlay bo'lsa, uni clickdan chiqarib tashlaymiz */
.hero-right,
.hero-frame,
.hero-visual,
.hero-bg,
.hero::before,
.hero::after {
  pointer-events: none;
}

/* lekin ichidagi rasm ko'rinsin (pointer kerak emas baribir) */
.hero-right img,
.hero-frame img {
  pointer-events: none;
}

/* ===== responsive ===== */
@media (max-width: 980px){
  .hero{grid-template-columns: 1fr;}
  .hero-right{justify-content:center;}
  .feature-cards{grid-template-columns: 1fr;}
  .hide-sm{display:none;}
  .hero-left h1{font-size:32px;}
}
@media (max-width: 520px){
  .hero{padding:18px;}
  .hero-left h1{font-size:28px;}
}
