/* Humo Line Academy landing — shadcn uslubidagi tokenlar, logotip yashili (#00b84c) */
:root {
  color-scheme: light;
  --radius: 0.75rem;
  --background: #ffffff;
  --foreground: #0a0a0a;
  --card: #ffffff;
  --muted: #f5f5f5;
  --muted-foreground: #737373;
  --border: #e5e5e5;
  --input: #e5e5e5;
  --primary: #00a845;
  --primary-hover: #008f3a;
  --primary-foreground: #ffffff;
  --primary-soft: rgb(0 184 76 / 0.1);
  --brand-light: #12d25f;
  --ink: #0a0f0b;
  --destructive: #dc2626;
  --shadow: 0 1px 2px rgb(0 0 0 / 0.05);
  --shadow-lg: 0 20px 40px -20px rgb(0 0 0 / 0.25);
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --background: #0a0a0a;
    --foreground: #fafafa;
    --card: #141414;
    --muted: #171717;
    --muted-foreground: #a3a3a3;
    --border: rgb(255 255 255 / 0.1);
    --input: rgb(255 255 255 / 0.15);
    --primary: #12d25f;
    --primary-hover: #3ddf7c;
    --primary-foreground: #02240f;
    --primary-soft: rgb(18 210 95 / 0.12);
    --destructive: #f87171;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.4);
    --shadow-lg: 0 20px 40px -20px rgb(0 0 0 / 0.8);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font: 16px/1.6 Inter, ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; letter-spacing: -0.02em; line-height: 1.15; }
p { margin: 0; }
svg { flex-shrink: 0; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
::selection { background: color-mix(in oklab, var(--primary), transparent 70%); }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .container { padding: 0 24px; } }

/* ---------- Tugmalar (shadcn Button) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 16px; border-radius: calc(var(--radius) - 2px);
  border: 1px solid transparent; font: inherit; font-size: 14px; font-weight: 600;
  white-space: nowrap; cursor: pointer; transition: background .15s, border-color .15s, color .15s, transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--primary); color: var(--primary-foreground); box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--primary-hover); }
.btn-outline { background: var(--card); border-color: var(--border); color: var(--foreground); box-shadow: var(--shadow); }
.btn-outline:hover { background: var(--muted); }
.btn-ghost { color: var(--muted-foreground); }
.btn-ghost:hover { color: var(--foreground); background: var(--muted); }
.btn-soft { background: var(--primary-soft); color: var(--primary); }
.btn-soft:hover { background: var(--primary); color: var(--primary-foreground); }
.btn-sm { height: 34px; padding: 0 12px; font-size: 13px; }
.btn-lg { height: 48px; padding: 0 22px; font-size: 15px; }
.btn-block { width: 100%; }
.btn svg { width: 18px; height: 18px; }

/* ---------- Navbar ---------- */
.nav {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in oklab, var(--background), transparent 20%);
  backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: -0.01em; }
.brand img { width: 58px; height: auto; }
.brand b { color: var(--primary); font-weight: 700; }
.brand.small img { width: 46px; }
.nav-links { display: none; gap: 4px; margin: 0 auto; }
.nav-links a { padding: 8px 12px; border-radius: 8px; font-size: 14px; color: var(--muted-foreground); transition: color .15s, background .15s; }
.nav-links a:hover { color: var(--foreground); background: var(--muted); }
.nav-actions { display: flex; gap: 8px; margin-left: auto; }
@media (min-width: 960px) { .nav-links { display: flex; } .nav-actions { margin-left: 0; } }
@media (max-width: 639px) { .hide-sm { display: none; } .brand span { display: none; } }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 56px 0 72px; }
.hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(40rem 26rem at 85% 10%, color-mix(in oklab, var(--primary), transparent 82%), transparent 70%),
    radial-gradient(30rem 20rem at 0% 100%, color-mix(in oklab, var(--brand-light), transparent 90%), transparent 70%);
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 60% 30%, black, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 60% 30%, black, transparent 70%);
  opacity: .6;
}
.hero-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 960px) { .hero { padding: 96px 0 112px; } .hero-grid { grid-template-columns: 1.1fr .9fr; } }
.pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px;
  border: 1px solid var(--border); border-radius: 999px; background: var(--card);
  font-size: 13px; font-weight: 500; color: var(--muted-foreground); box-shadow: var(--shadow);
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft); }
.hero h1 { margin-top: 20px; font-size: clamp(2.25rem, 5.5vw, 4rem); font-weight: 800; letter-spacing: -0.035em; text-wrap: balance; }
.grad { background: linear-gradient(90deg, var(--primary), var(--brand-light)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { margin-top: 20px; max-width: 34rem; font-size: 18px; color: var(--muted-foreground); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 28px 0 0; padding: 0; list-style: none; font-size: 14px; color: var(--muted-foreground); }
.hero-points li { display: inline-flex; align-items: center; gap: 6px; }
.hero-points svg { width: 16px; height: 16px; fill: none; stroke: var(--primary); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }

.hero-art { position: relative; padding: 24px 8px; }
.hero-card {
  position: relative; padding: 40px 28px; border-radius: calc(var(--radius) * 2);
  background: linear-gradient(160deg, var(--card), color-mix(in oklab, var(--primary), var(--card) 94%));
  border: 1px solid var(--border); box-shadow: var(--shadow-lg);
}
.float {
  position: absolute; display: flex; align-items: center; gap: 10px; padding: 10px 14px 10px 10px;
  border-radius: var(--radius); background: var(--card); border: 1px solid var(--border); box-shadow: var(--shadow-lg);
  animation: float 6s ease-in-out infinite;
}
.float small { display: block; font-size: 11px; color: var(--muted-foreground); line-height: 1.2; }
.float b { font-size: 14px; }
.float-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--primary-soft); font-size: 18px; }
.float-icon.ok { color: var(--primary); font-weight: 800; }
.float-a { top: 0; left: 0; }
.float-b { right: 0; bottom: 0; animation-delay: -3s; }
@keyframes float { 50% { transform: translateY(-8px); } }
@media (prefers-reduced-motion: reduce) { .float { animation: none; } html { scroll-behavior: auto; } }

/* ---------- Bo'limlar ---------- */
.section { padding: 72px 0; }
@media (min-width: 960px) { .section { padding: 96px 0; } }
.section-muted { background: var(--muted); border-block: 1px solid var(--border); }
.section-head { max-width: 40rem; margin: 0 auto 40px; text-align: center; }
.section-head h2 { margin-top: 8px; font-size: clamp(1.75rem, 3.5vw, 2.5rem); font-weight: 700; }
.section-head p { margin-top: 12px; color: var(--muted-foreground); }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 600; color: var(--primary); text-transform: uppercase; letter-spacing: .08em; }
.eyebrow.on-dark { color: var(--brand-light); }
.empty { text-align: center; color: var(--muted-foreground); }

/* Kurslar */
.courses { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); }
.course {
  display: flex; flex-direction: column; gap: 12px; padding: 24px;
  background: var(--card); border: 1px solid var(--border); border-radius: calc(var(--radius) + 4px);
  box-shadow: var(--shadow); transition: border-color .2s, transform .2s, box-shadow .2s;
}
.course:hover { border-color: color-mix(in oklab, var(--primary), transparent 55%); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.course-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.course-emoji { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: var(--primary-soft); font-size: 24px; }
.tag { padding: 2px 10px; border: 1px solid var(--border); border-radius: 999px; font-size: 12px; color: var(--muted-foreground); }
.course h3 { font-size: 19px; font-weight: 650; }
.course-desc { flex: 1; font-size: 14px; color: var(--muted-foreground); white-space: pre-line; }
.course-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 16px; margin-top: auto; border-top: 1px solid var(--border); }
.price { font-weight: 700; font-size: 16px; }
.price small { font-weight: 500; font-size: 13px; color: var(--muted-foreground); }

/* Afzalliklar */
.features { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.feature { padding: 24px; background: var(--card); border: 1px solid var(--border); border-radius: calc(var(--radius) + 4px); box-shadow: var(--shadow); }
.feature h3 { margin-top: 16px; font-size: 17px; font-weight: 650; }
.feature p { margin-top: 6px; font-size: 14px; color: var(--muted-foreground); }
.feature-icon, .contact-icon {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px;
  background: var(--primary-soft); color: var(--primary);
}
.feature-icon svg, .contact-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Qadamlar */
.steps { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin: 0; padding: 0; list-style: none; counter-reset: s; }
.steps li { position: relative; padding: 24px; border: 1px dashed color-mix(in oklab, var(--primary), transparent 55%); border-radius: calc(var(--radius) + 4px); }
.step-n { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--primary); color: var(--primary-foreground); font-weight: 700; }
.steps h3 { margin-top: 16px; font-size: 17px; font-weight: 650; }
.steps p { margin-top: 6px; font-size: 14px; color: var(--muted-foreground); }

/* ---------- Ariza ---------- */
.section-cta {
  color: #fafafa;
  background:
    radial-gradient(40rem 24rem at 100% 0%, rgb(18 210 95 / 0.22), transparent 65%),
    radial-gradient(30rem 20rem at 0% 100%, rgb(0 168 69 / 0.18), transparent 60%),
    var(--ink);
}
.apply-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) { .apply-grid { grid-template-columns: .9fr 1.1fr; gap: 64px; } }
.apply-copy h2 { margin-top: 8px; font-size: clamp(2rem, 4vw, 2.75rem); font-weight: 750; }
.apply-copy > p { margin-top: 14px; font-size: 17px; color: #a3a3a3; max-width: 28rem; }
.apply-list { margin: 28px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; font-size: 15px; color: #d4d4d4; }
.apply-list li { position: relative; padding-left: 28px; }
.apply-list li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%;
  background: rgb(18 210 95 / 0.18) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2312d25f' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5L20 7'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.apply-list a { color: var(--brand-light); font-weight: 600; }

.form-card {
  padding: 24px; border-radius: calc(var(--radius) * 1.5);
  background: var(--card); color: var(--foreground); border: 1px solid var(--border);
  box-shadow: 0 30px 60px -30px rgb(0 0 0 / 0.6);
}
@media (min-width: 640px) { .form-card { padding: 32px; } }
.field { margin: 0 0 16px; padding: 0; border: 0; min-width: 0; }
.field label, .field legend { display: block; margin-bottom: 8px; padding: 0; font-size: 14px; font-weight: 500; }
.row { display: grid; gap: 0 12px; grid-template-columns: 1fr; }
@media (min-width: 480px) { .row { grid-template-columns: 1fr 1.6fr; } }
input:not([type=radio]), select {
  width: 100%; height: 44px; padding: 0 12px; border: 1px solid var(--input); border-radius: calc(var(--radius) - 2px);
  background: transparent; color: var(--foreground); font: inherit; font-size: 16px; box-shadow: var(--shadow);
  transition: border-color .15s, box-shadow .15s; appearance: none; -webkit-appearance: none;
}
select {
  padding-right: 36px; cursor: pointer;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23737373' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 12px center / 16px no-repeat;
}
select option { background: var(--card); color: var(--foreground); }
input::placeholder { color: var(--muted-foreground); }
input:focus, select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in oklab, var(--primary), transparent 75%); }
[aria-invalid=true] { border-color: var(--destructive) !important; }
.choices { display: grid; gap: 8px; grid-template-columns: 1fr 1fr; }
.choice { position: relative; margin: 0 !important; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice span {
  display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px 10px; text-align: center;
  border: 1px solid var(--input); border-radius: calc(var(--radius) - 2px); font-size: 14px; font-weight: 500; line-height: 1.3;
  transition: border-color .15s, background .15s, color .15s;
}
.choice input:checked + span { border-color: var(--primary); background: var(--primary-soft); color: var(--primary); }
.choice input:focus-visible + span { box-shadow: 0 0 0 3px color-mix(in oklab, var(--primary), transparent 75%); }
.err { margin-top: 6px; font-size: 13px; color: var(--destructive); }
.err:empty { display: none; }
.form-err { margin: 0 0 12px; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.fine { margin-top: 12px; font-size: 12px; text-align: center; color: var(--muted-foreground); }
.spinner { display: none; width: 18px; height: 18px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
.loading .spinner { display: inline-block; }
.loading .btn-label { opacity: .8; }
@keyframes spin { to { transform: rotate(360deg); } }

.done { padding: 24px 0; text-align: center; }
.done-icon { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--primary-soft); color: var(--primary); }
.done-icon svg { width: 32px; height: 32px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.done h3 { margin-top: 16px; font-size: 22px; }
.done p { margin: 8px auto 24px; max-width: 24rem; color: var(--muted-foreground); white-space: pre-line; }

/* ---------- Aloqa ---------- */
.contacts { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.contact {
  display: flex; align-items: center; gap: 14px; padding: 20px;
  background: var(--card); border: 1px solid var(--border); border-radius: calc(var(--radius) + 4px); box-shadow: var(--shadow);
  transition: border-color .2s;
}
a.contact:hover { border-color: color-mix(in oklab, var(--primary), transparent 55%); }
.contact small { display: block; font-size: 12px; color: var(--muted-foreground); }
.contact b { font-size: 16px; font-weight: 600; }
.contact .pre { white-space: pre-line; }
.contact-icon.tg { background: rgb(38 165 228 / 0.12); color: #26a5e4; }

/* ---------- Footer ---------- */
.footer { padding: 32px 0 calc(32px + env(safe-area-inset-bottom)); border-top: 1px solid var(--border); font-size: 14px; color: var(--muted-foreground); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.footer .brand { color: var(--foreground); }

/* Telefonda pastdagi tugma (ariza bo'limida yashiriladi) */
.sticky-cta {
  position: fixed; left: 16px; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 30;
  box-shadow: 0 12px 30px -10px rgb(0 0 0 / 0.5); transition: opacity .2s, transform .2s;
}
.sticky-cta.hidden { opacity: 0; transform: translateY(20px); pointer-events: none; }
@media (min-width: 768px) { .sticky-cta { display: none; } }
@media (max-width: 767px) { .footer { padding-bottom: calc(96px + env(safe-area-inset-bottom)); } }
