/* Ranglar shu yerdan o'zgaradi */
:root {
  --bg: #0a0e24;
  --panel: #121734;
  --line: rgba(255,255,255,.1);
  --text: #e9ecff;
  --muted: #9aa3cf;
  --a1: #6d5dfc;
  --a2: #38bdf8;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  font-family: "Manrope", Arial, sans-serif; background: var(--bg); color: var(--text); line-height: 1.6;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 60px 60px; overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }

/* Burchakdagi yorug'lik */
.glow { position: fixed; width: 50vw; height: 50vw; border-radius: 50%; filter: blur(120px); opacity: .35; z-index: -1; pointer-events: none; }
.g1 { background: var(--a1); top: -20vw; left: -15vw; animation: pulse 12s ease-in-out infinite; }
.g2 { background: var(--a2); bottom: -25vw; right: -15vw; animation: pulse 15s ease-in-out -5s infinite; }
@keyframes pulse { 50% { transform: scale(1.25) translate(4vw, 3vw); opacity: .2; } }

/* Menyu */
.nav { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px 6vw; background: rgba(10,14,36,.8); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.logo { font-weight: 800; font-size: 1.3rem; }
.logo b { color: var(--a2); }
#menu { display: flex; gap: 22px; }
#menu a { color: var(--muted); font-weight: 600; font-size: .95rem; }
#menu a:hover, #menu a.on { color: #fff; }

.btn { display: inline-block; padding: 14px 26px; border-radius: 12px; font: inherit; font-weight: 600; border: 1px solid var(--line); cursor: pointer; transition: transform .2s, box-shadow .2s; }
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible, .sw:focus-visible { outline: 3px solid var(--a2); outline-offset: 3px; }
.btn-main { background: linear-gradient(135deg, var(--a1), #4f7cff); color: #fff; border: 0; box-shadow: 0 8px 28px rgba(109,93,252,.4); }
.btn-dark { background: var(--panel); color: var(--text); }
.small { padding: 10px 20px; }

.tag { color: var(--a2); font-weight: 700; font-size: .85rem; margin-bottom: 14px; }
.center { text-align: center; }
h1, h2, h3 { line-height: 1.12; }
.grad { background: linear-gradient(90deg, var(--a1), var(--a2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.caret { color: var(--a2); animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* Hero */
.hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; padding: 70px 6vw 90px; }
.hero h1 { font-size: clamp(2.2rem, 5.2vw, 4rem); font-weight: 800; margin-bottom: 20px; }
.lead { color: var(--muted); max-width: 480px; margin-bottom: 28px; font-size: 1.08rem; }
.buttons { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 40px; }
.stats { display: flex; gap: 36px; flex-wrap: wrap; }
.stats b { display: block; font-size: 2rem; color: var(--a1); }
.stats span { color: var(--muted); font-size: .85rem; }

/* Hero rasmi: noutbuk va telefon (CSS bilan) */
.devices { position: relative; height: 340px; animation: float 7s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-14px); } }
.laptop { position: absolute; left: 0; top: 20px; width: 80%; height: 250px; background: #1b2150; border: 8px solid #2b3270; border-radius: 16px 16px 6px 6px; box-shadow: 0 30px 60px rgba(0,0,0,.5); }
.laptop::after { content: ""; position: absolute; left: -14%; right: -14%; bottom: -22px; height: 14px; background: #2b3270; border-radius: 0 0 20px 20px; }
.screen { height: 100%; padding: 14px; display: flex; flex-direction: column; gap: 10px; background: #fff; border-radius: 6px; }
.phone { position: absolute; right: 0; bottom: 0; width: 120px; height: 230px; padding: 12px; display: flex; flex-direction: column; gap: 8px; background: #fff; border: 6px solid #2b3270; border-radius: 22px; box-shadow: 0 20px 40px rgba(0,0,0,.5); }
.s-bar { height: 10px; width: 50%; background: var(--a1); border-radius: 6px; }
.s-hero { flex: 1; min-height: 40px; border-radius: 10px; background: linear-gradient(135deg, #9fd9ff, var(--a1)); }
.s-l { height: 9px; border-radius: 6px; background: #d8dcf0; }
.s-l.short { width: 60%; }
.s-btn { height: 26px; width: 110px; border-radius: 8px; background: var(--a1); }

/* Bo'limlar */
.block { padding: 80px 6vw; }
.block h2 { text-align: center; font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; margin-bottom: 14px; }
.narrow { max-width: 820px; margin: 0 auto; }
.sub { text-align: center; color: var(--muted); max-width: 560px; margin: 0 auto 44px; }
.sub.left { text-align: left; margin: 0 0 26px; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; }
.card { padding: 26px; background: var(--panel); border: 1px solid var(--line); border-radius: 18px; transition: transform .3s, border-color .3s; }
.card:hover { transform: translateY(-6px); border-color: var(--a1); }
.ic { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: rgba(109,93,252,.2); color: var(--a2); font-weight: 800; margin-bottom: 16px; }
.card h3 { font-size: 1.2rem; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: .95rem; margin-bottom: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips em { font-style: normal; font-size: .75rem; padding: 4px 10px; border: 1px solid var(--line); border-radius: 20px; color: var(--muted); }

/* Loyiha namunasi */
.project { display: grid; grid-template-columns: 1.3fr 1fr; gap: 36px; align-items: center; padding: 30px; background: var(--panel); border: 1px solid var(--line); border-radius: 22px; }
.switch { display: inline-flex; padding: 4px; background: var(--bg); border-radius: 12px; margin-bottom: 16px; }
.sw { font: inherit; font-weight: 600; padding: 8px 18px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); cursor: pointer; }
.sw.active { background: linear-gradient(135deg, var(--a1), #4f7cff); color: #fff; }
.stage { display: flex; justify-content: center; }
.browser { width: 100%; background: #fff; border-radius: 12px; overflow: hidden; transition: width .5s ease; }
.browser.phone-mode { width: 190px; }
.b-bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; background: #e4e7f5; color: #555b82; font-size: .75rem; }
.b-bar i { width: 9px; height: 9px; border-radius: 50%; background: #aab0d4; }
.b-bar span { margin-left: 8px; }
.b-body { padding: 16px; display: flex; flex-direction: column; gap: 10px; height: 230px; transition: height .5s; }
.phone-mode .b-body { height: 340px; }
.pill { display: inline-block; padding: 4px 12px; border-radius: 20px; background: rgba(56,189,248,.15); color: var(--a2); font-size: .8rem; font-weight: 600; margin-bottom: 12px; }
.p-info h3 { font-size: 1.8rem; margin-bottom: 10px; }
.p-info p { color: var(--muted); margin-bottom: 16px; }
.ticks { list-style: none; margin-bottom: 22px; }
.ticks li { padding: 5px 0 5px 28px; position: relative; }
.ticks li::before { content: "✓"; position: absolute; left: 0; color: var(--a2); font-weight: 800; }

/* Ish tartibi */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 18px; margin-top: 40px; }
.steps div { padding: 22px; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; }
.steps b { font-size: 2rem; color: var(--a1); }
.steps h3 { margin: 6px 0; font-size: 1.1rem; }
.steps p { color: var(--muted); font-size: .9rem; }

/* Savollar */
details { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; margin-bottom: 12px; }
summary { list-style: none; padding: 18px 22px; font-weight: 600; cursor: pointer; display: flex; justify-content: space-between; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--a2); font-size: 1.3rem; transition: transform .3s; }
details[open] summary::after { transform: rotate(45deg); }
details p { padding: 0 22px 18px; color: var(--muted); }

/* Aloqa */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; max-width: 1100px; margin: 0 auto; }
.contact h2 { text-align: left; }
.info { display: flex; align-items: center; gap: 14px; padding: 14px 18px; margin-bottom: 12px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; }
.info .ic { margin: 0; }
.info small { display: block; color: var(--muted); font-size: .8rem; }
.form { padding: 28px; background: var(--panel); border: 1px solid var(--line); border-radius: 20px; align-self: start; }
label { display: block; color: var(--muted); font-size: .85rem; margin-bottom: 16px; }
input, select, textarea { display: block; width: 100%; margin-top: 6px; padding: 12px 14px; font: inherit; color: var(--text); background: var(--bg); border: 1px solid var(--line); border-radius: 10px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--a1); }
.form .btn { width: 100%; }
.note { color: var(--muted); font-size: .8rem; margin-top: 12px; text-align: center; }

footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding: 24px 6vw; border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
.up { position: fixed; right: 22px; bottom: 22px; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--a1); color: #fff; font-size: 1.2rem; cursor: pointer; opacity: 0; pointer-events: none; transition: opacity .3s; box-shadow: 0 8px 24px rgba(109,93,252,.5); }
.up.show { opacity: 1; pointer-events: auto; }

@media (max-width: 860px) {
  #menu { display: none; }
  .hero, .project, .contact { grid-template-columns: 1fr; }
  .devices { height: 300px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
