/* Emro — landing page. Bright light theme with gentle motion (switched off for "reduce motion"). */
:root {
  color-scheme: light;
  --bg: #fbfcfa;
  --card: #ffffff;
  --ink: #10201a;
  --muted: #5a6a63;
  --line: #e3ebe5;
  --brand: #0e9f77;
  --brand-dark: #0b7f5f;
  --sky: #0ea5e9;
  --accent: #f59e0b;
  --soft: #f1f8f4;
  --grad: linear-gradient(120deg, #10b981 0%, #0ea5e9 55%, #10b981 100%);
  --shadow-sm: 0 1px 2px rgba(16, 32, 26, .04), 0 4px 14px rgba(16, 32, 26, .05);
  --shadow-lg: 0 2px 6px rgba(16, 32, 26, .04), 0 22px 48px rgba(16, 32, 26, .10);
  --radius: 20px;
  --wrap: 1160px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.6 "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; }
a { color: inherit; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; position: relative; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--brand); color: #fff; padding: 8px 12px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 8px; }

/* ---------- Floating colour blobs behind the page ---------- */
.bg-blobs { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.bg-blobs span { position: absolute; width: 520px; height: 520px; border-radius: 50%; filter: blur(90px); opacity: .45; animation: drift 22s ease-in-out infinite alternate; }
.bg-blobs span:nth-child(1) { background: #a7f3d0; top: -160px; left: -120px; }
.bg-blobs span:nth-child(2) { background: #bae6fd; top: 20%; right: -180px; animation-delay: -7s; animation-duration: 26s; }
.bg-blobs span:nth-child(3) { background: #fde68a; bottom: -200px; left: 30%; opacity: .35; animation-delay: -12s; animation-duration: 30s; }
@keyframes drift {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(60px, 40px) scale(1.08); }
  100% { transform: translate(-40px, 80px) scale(.95); }
}

/* ---------- Header ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 255, 255, .72);
  backdrop-filter: saturate(1.6) blur(14px);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s, background .3s;
}
.topbar.scrolled { border-color: var(--line); box-shadow: 0 6px 24px rgba(16, 32, 26, .06); background: rgba(255, 255, 255, .88); }
.topbar .wrap { display: flex; align-items: center; gap: 24px; height: 70px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 20px; letter-spacing: -.01em; }
.logo img { width: 36px; height: 36px; transition: transform .4s var(--ease); }
.logo:hover img { transform: rotate(-8deg) scale(1.06); }
.logo small { display: block; font-size: 11px; font-weight: 500; color: var(--muted); letter-spacing: .02em; }
.nav { display: flex; gap: 2px; margin-left: auto; }
.nav a { position: relative; text-decoration: none; color: var(--muted); font-weight: 500; font-size: 15px; padding: 8px 12px; border-radius: 10px; transition: color .2s; }
.nav a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 3px; height: 2px; border-radius: 2px; background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav a:hover, .nav a.active { color: var(--ink); }
.nav a:hover::after, .nav a.active::after { transform: scaleX(1); }
.menu-btn { display: none; margin-left: auto; background: #fff; border: 1px solid var(--line); border-radius: 12px; width: 44px; height: 44px; color: var(--ink); cursor: pointer; }
.menu-btn svg { margin: auto; }

/* ---------- Buttons ---------- */
.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: 14px; font-weight: 600; font-size: 15px;
  text-decoration: none; border: 1px solid var(--line); background: #fff; color: var(--ink);
  transition: transform .2s var(--ease), box-shadow .2s, border-color .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); border-color: #cfe0d6; }
.btn.primary { background: var(--grad); background-size: 200% 100%; border: 0; color: #fff; box-shadow: 0 10px 24px rgba(14, 159, 119, .28); animation: sheen 8s linear infinite; }
.btn.primary::after { content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .45), transparent); transform: skewX(-20deg); transition: left .6s var(--ease); }
.btn.primary:hover::after { left: 120%; }
.btn.small { padding: 9px 15px; font-size: 14px; border-radius: 12px; }
.btn svg { width: 18px; height: 18px; }
@keyframes sheen { to { background-position: 200% 0; } }

/* ---------- Hero ---------- */
.hero { padding: 80px 0 64px; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--brand-dark); font-weight: 600; font-size: 14px; margin: 0 0 16px; padding: 6px 14px; border-radius: 999px; background: rgba(255, 255, 255, .8); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(245, 158, 11, .6); animation: ping 2s ease-out infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(245, 158, 11, .55); } 80%, 100% { box-shadow: 0 0 0 10px rgba(245, 158, 11, 0); } }
h1 { font-size: clamp(34px, 5.4vw, 58px); line-height: 1.06; letter-spacing: -.03em; margin: 0 0 20px; }
h1 em, .grad-text { font-style: normal; background: var(--grad); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: sheen 6s linear infinite; }
.lead { font-size: 19px; color: var(--muted); margin: 0 0 30px; max-width: 600px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 44px; }
.stat { padding: 14px 16px; border-radius: 16px; background: rgba(255, 255, 255, .7); border: 1px solid var(--line); }
.stat b { display: block; font-size: 28px; letter-spacing: -.02em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat > span { color: var(--muted); font-size: 14px; }

/* Hero visual: floating app window with pop-up badges */
.hero-visual { position: relative; }
.mock { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow-lg); overflow: hidden; animation: floatY 7s ease-in-out infinite; }
@keyframes floatY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.mock-bar { display: flex; gap: 6px; padding: 12px 14px; border-bottom: 1px solid var(--line); background: #fafcfb; }
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; }
.mock-bar i:nth-child(1) { background: #fca5a5; } .mock-bar i:nth-child(2) { background: #fcd34d; } .mock-bar i:nth-child(3) { background: #86efac; }
.mock-body { padding: 20px; display: grid; gap: 14px; }
.mock-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.kpi { border-radius: 14px; padding: 12px; }
.kpi:nth-child(1) { background: #ecfdf5; } .kpi:nth-child(2) { background: #eff6ff; } .kpi:nth-child(3) { background: #fff7ed; }
.kpi small { color: var(--muted); font-size: 12px; display: block; }
.kpi b { font-size: 17px; }
.chart { display: flex; align-items: flex-end; gap: 8px; height: 150px; padding: 14px; background: #f8fbf9; border-radius: 14px; }
.chart span { flex: 1; border-radius: 8px 8px 3px 3px; background: linear-gradient(180deg, #34d399, #10b981); transform-origin: bottom; }
.chart span:nth-child(even) { background: linear-gradient(180deg, #7dd3fc, #0ea5e9); }
.chart span:nth-child(5) { background: linear-gradient(180deg, #fcd34d, #f59e0b); }
.js .chart span { transform: scaleY(0); }
.js .chart.in span { animation: grow 1.1s var(--ease) forwards; }
.chart.in span:nth-child(2) { animation-delay: .08s; } .chart.in span:nth-child(3) { animation-delay: .16s; } .chart.in span:nth-child(4) { animation-delay: .24s; }
.chart.in span:nth-child(5) { animation-delay: .32s; } .chart.in span:nth-child(6) { animation-delay: .40s; } .chart.in span:nth-child(7) { animation-delay: .48s; }
@keyframes grow { to { transform: scaleY(1); } }
.mock-list { display: grid; gap: 8px; }
.mock-item { display: flex; justify-content: space-between; font-size: 14px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; }
.mock-item span:last-child { font-weight: 600; }
.float-badge { position: absolute; display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 14px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-lg); font-size: 14px; font-weight: 600; white-space: nowrap; animation: bob 5s ease-in-out infinite; }
.float-badge .dot { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; color: #fff; font-size: 14px; }
.float-badge.b1 { left: -36px; top: 46%; } .float-badge.b1 .dot { background: linear-gradient(135deg, #34d399, #10b981); }
.float-badge.b2 { right: -24px; top: -18px; animation-delay: -2.5s; } .float-badge.b2 .dot { background: linear-gradient(135deg, #fcd34d, #f59e0b); }
.float-badge.b3 { right: 20px; bottom: -22px; animation-delay: -1.2s; } .float-badge.b3 .dot { background: linear-gradient(135deg, #7dd3fc, #0ea5e9); }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-10px) rotate(1deg); } }

/* ---------- Technology strip ---------- */
.marquee { position: relative; overflow: hidden; padding: 18px 0; border-block: 1px solid var(--line); background: rgba(255, 255, 255, .6); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee .track { display: flex; gap: 14px; width: max-content; animation: scrollX 36s linear infinite; }
.marquee:hover .track { animation-play-state: paused; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-weight: 600; font-size: 14px; color: #33433c; white-space: nowrap; }
.chip::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c, #10b981); }
@keyframes scrollX { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
section { padding: 84px 0; position: relative; }
section.alt { background: linear-gradient(180deg, rgba(236, 253, 245, .7), rgba(240, 249, 255, .7)); }
.head { max-width: 720px; margin-bottom: 40px; }
.head .kicker { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); margin-bottom: 10px; }
.head h2 { font-size: clamp(28px, 3.6vw, 42px); line-height: 1.12; letter-spacing: -.025em; margin: 0 0 12px; }
.head p { color: var(--muted); margin: 0; font-size: 17px; }
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.grid.two { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); }

.card {
  position: relative;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; display: flex; flex-direction: column; gap: 12px;
  box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.card::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; background: var(--grad); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity .35s; pointer-events: none; }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card:hover::before { opacity: 1; }
.card h3 { margin: 0; font-size: 19px; letter-spacing: -.01em; }
.card p { margin: 0; color: var(--muted); }
.card .meta { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: #ecfdf5; color: #047857; }
.tag.soon { background: #fef3c7; color: #b45309; }

/* Coloured icons: green, blue, orange, violet, pink in turn */
.icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(135deg, #d1fae5, #a7f3d0); color: #047857; transition: transform .4s var(--ease); }
.icon svg { width: 24px; height: 24px; }
.card:hover .icon, .why > div:hover .icon { transform: rotate(-8deg) scale(1.08); }
.grid > .card:nth-child(5n+2) .icon, .why > div:nth-child(2) .icon { background: linear-gradient(135deg, #dbeafe, #bfdbfe); color: #1d4ed8; }
.grid > .card:nth-child(5n+3) .icon, .why > div:nth-child(3) .icon { background: linear-gradient(135deg, #ffedd5, #fed7aa); color: #c2410c; }
.grid > .card:nth-child(5n+4) .icon, .why > div:nth-child(4) .icon { background: linear-gradient(135deg, #ede9fe, #ddd6fe); color: #6d28d9; }
.grid > .card:nth-child(5n+5) .icon { background: linear-gradient(135deg, #fce7f3, #fbcfe8); color: #be185d; }

.card .foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 8px; }
.price b { font-size: 18px; color: var(--brand-dark); }
.price small { display: block; color: var(--muted); font-size: 13px; }
.card .url { font-size: 13px; color: var(--muted); }

ul.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 7px; }
ul.checks li { padding-left: 26px; position: relative; color: var(--muted); font-size: 15px; }
ul.checks li::before { content: "✓"; position: absolute; left: 0; top: 2px; width: 18px; height: 18px; border-radius: 6px; background: #d1fae5; color: #047857; font-size: 12px; font-weight: 700; display: grid; place-items: center; line-height: 1; }

/* Services: numbered cards */
#xizmatlar .grid { counter-reset: svc; }
#xizmatlar .card { padding-top: 22px; }
#xizmatlar .card::after { counter-increment: svc; content: "0" counter(svc); position: absolute; top: 18px; right: 22px; font-weight: 800; font-size: 28px; color: #e6efe9; transition: color .35s; }
#xizmatlar .card:hover::after { color: #a7f3d0; }

/* Why-us strip */
.why { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.why > div { padding: 22px; border-radius: var(--radius); background: rgba(255, 255, 255, .75); border: 1px solid var(--line); transition: transform .35s var(--ease), box-shadow .35s; }
.why > div:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.why b { display: block; margin: 14px 0 4px; font-size: 17px; }
.why p { margin: 0; color: var(--muted); font-size: 15px; }

/* About */
.about { display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; align-items: start; }
.about-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); }
.person { display: flex; gap: 16px; align-items: center; }
.avatar { width: 76px; height: 76px; border-radius: 22px; background: var(--grad); background-size: 200% 100%; animation: sheen 6s linear infinite; color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 26px; flex: none; box-shadow: 0 10px 24px rgba(14, 159, 119, .25); }
.person b { font-size: 19px; display: block; }
.person span { color: var(--muted); font-size: 15px; }
.about p { color: var(--muted); }

/* Contact — light gradient panel */
.contact { position: relative; overflow: hidden; background: linear-gradient(135deg, #ecfdf5 0%, #e0f2fe 60%, #fef9c3 130%); border: 1px solid #d5ece1; border-radius: 28px; padding: 52px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: center; }
.contact::before, .contact::after { content: ""; position: absolute; border-radius: 50%; pointer-events: none; animation: drift 18s ease-in-out infinite alternate; }
.contact::before { width: 260px; height: 260px; right: -80px; top: -90px; background: rgba(16, 185, 129, .16); }
.contact::after { width: 180px; height: 180px; left: 38%; bottom: -100px; background: rgba(14, 165, 233, .14); animation-delay: -6s; }
.contact > * { position: relative; z-index: 1; }
.contact h2 { margin: 0 0 10px; font-size: clamp(28px, 3.6vw, 40px); letter-spacing: -.025em; line-height: 1.12; }
.contact p { margin: 0; color: var(--muted); font-size: 17px; }
.contact .lines { display: grid; gap: 12px; }
.contact .line { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-radius: 16px; background: #fff; border: 1px solid var(--line); text-decoration: none; font-weight: 700; font-size: 17px; box-shadow: var(--shadow-sm); transition: transform .25s var(--ease), box-shadow .25s; }
.contact a.line:hover { transform: translateX(4px); box-shadow: var(--shadow-lg); }
.contact .line small { display: block; font-weight: 500; font-size: 13px; color: var(--muted); }
.contact .line svg { width: 22px; height: 22px; flex: none; }
.contact .line .ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; flex: none; color: #fff; }
.contact .line:nth-child(1) .ic { background: linear-gradient(135deg, #34d399, #059669); }
.contact .line:nth-child(2) .ic { background: linear-gradient(135deg, #38bdf8, #0284c7); }
.contact .line:nth-child(3) .ic { background: linear-gradient(135deg, #fbbf24, #d97706); }

/* Footer */
footer { padding: 52px 0 32px; border-top: 1px solid var(--line); background: rgba(255, 255, 255, .7); }
.fgrid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 24px; }
.fgrid h4 { margin: 0 0 10px; font-size: 14px; }
.fgrid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.fgrid a { color: var(--muted); text-decoration: none; font-size: 14px; transition: color .2s; }
.fgrid a:hover { color: var(--brand); }
.fgrid p { color: var(--muted); font-size: 14px; margin: 10px 0 0; }
.copy { margin-top: 32px; color: var(--muted); font-size: 13px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }

/* Back-to-top button */
.to-top { position: fixed; right: 18px; bottom: 18px; width: 46px; height: 46px; border-radius: 14px; border: 0; background: var(--grad); color: #fff; box-shadow: 0 10px 24px rgba(14, 159, 119, .3); cursor: pointer; opacity: 0; transform: translateY(16px); transition: opacity .3s, transform .3s var(--ease); z-index: 15; }
.to-top.show { opacity: 1; transform: none; }
.to-top svg { margin: auto; width: 20px; height: 20px; }

/* ---------- Scroll reveal (only when JavaScript runs) ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }
.js .card.reveal.in:hover { transform: translateY(-6px); transition-delay: 0s; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero .wrap, .about, .contact { grid-template-columns: 1fr; }
  .hero { padding-top: 48px; }
  .hero-visual { margin: 12px 18px 24px; }
  .why { grid-template-columns: repeat(2, 1fr); }
  .fgrid { grid-template-columns: repeat(2, 1fr); }
  .fgrid > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 820px) {
  .menu-btn { display: block; }
  .nav { display: none; position: absolute; top: 70px; left: 0; right: 0; flex-direction: column; gap: 2px; padding: 8px 16px 16px; background: rgba(255, 255, 255, .97); border-bottom: 1px solid var(--line); box-shadow: 0 16px 30px rgba(16, 32, 26, .08); }
  .nav.open { display: flex; animation: drop .25s var(--ease); }
  .nav a { padding: 12px; }
  .nav a::after { display: none; }
  .topbar .wrap > .btn { display: none; }
}
@keyframes drop { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@media (max-width: 560px) {
  section { padding: 60px 0; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .why { grid-template-columns: 1fr; }
  .grid.two { grid-template-columns: 1fr; }
  .contact { padding: 30px 20px; border-radius: 22px; }
  .mock-row { grid-template-columns: repeat(2, 1fr); }
  .mock-row .kpi:last-child { display: none; }
  .lead { font-size: 17px; }
  .float-badge { font-size: 12px; padding: 8px 10px; }
  .float-badge .dot { width: 22px; height: 22px; }
  .float-badge.b1 { left: -14px; }
  .float-badge.b2 { right: -10px; }
  .float-badge.b3 { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .js .chart span { transform: none; }
}
