:root {
  --bg: #0a0a0c;
  --bg2: #111116;
  --panel: rgba(255, 255, 255, 0.04);
  --line: rgba(255, 255, 255, 0.09);
  --red: #f82838;
  --red2: #ff4d5a;
  --red-deep: #8d0b16;
  --text: #f4f4f6;
  --muted: #9a9aa6;
  --radius: 18px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --display: 'Orbitron', 'Inter', system-ui, sans-serif;
  --body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
  font-family: var(--body);
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
code { font-family: ui-monospace, Consolas, monospace; font-size: 0.92em; color: #ffb3b9; background: rgba(248, 40, 56, 0.1); padding: 2px 7px; border-radius: 6px; }
::selection { background: var(--red); color: #fff; }

/* ---------- fon efektlari ---------- */
.fx { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.grain {
  position: fixed; inset: -50%; z-index: 1; pointer-events: none; opacity: 0.06;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 8s steps(6) infinite;
}
@keyframes grain { 0%,100% { transform: translate(0,0); } 20% { transform: translate(-3%,2%); } 40% { transform: translate(2%,-3%); } 60% { transform: translate(-2%,3%); } 80% { transform: translate(3%,-1%); } }

main, .nav, .foot { position: relative; z-index: 2; }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px clamp(18px, 4vw, 56px);
  transition: background .4s var(--ease), backdrop-filter .4s, box-shadow .4s;
}
.nav.scrolled { background: rgba(10, 10, 12, 0.72); backdrop-filter: blur(14px) saturate(140%); box-shadow: 0 1px 0 var(--line); }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 800; letter-spacing: 0.04em; font-size: 17px; }
.brand img { filter: drop-shadow(0 0 10px rgba(248, 40, 56, 0.55)); }
.links { display: flex; gap: 26px; font-size: 14px; color: var(--muted); }
.links a { position: relative; transition: color .3s; }
.links a::after { content: ''; position: absolute; left: 0; bottom: -6px; width: 0; height: 2px; background: var(--red); transition: width .35s var(--ease); }
.links a:hover { color: var(--text); }
.links a:hover::after { width: 100%; }
@media (max-width: 820px) { .links { display: none; } }

/* ---------- tugmalar ---------- */
.btn {
  position: relative; overflow: hidden; display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; padding: 14px 26px; border-radius: 14px; font-weight: 700; font-size: 15px; letter-spacing: 0.01em;
  border: 1px solid transparent; cursor: pointer; transition: transform .35s var(--ease), box-shadow .35s, background .35s, border-color .35s;
  will-change: transform;
}
.btn small { font-size: 11px; font-weight: 500; opacity: 0.75; }
.btn::after {
  content: ''; position: absolute; top: 0; left: -75%; width: 50%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,0.45), transparent);
  transform: skewX(-20deg); transition: left .75s var(--ease);
}
.btn:hover::after { left: 130%; }
.btn-primary {
  color: #fff; background: linear-gradient(135deg, var(--red2), var(--red) 45%, var(--red-deep));
  box-shadow: 0 10px 40px -10px rgba(248, 40, 56, 0.7), inset 0 1px 0 rgba(255,255,255,0.25);
}
.btn-primary:hover { box-shadow: 0 16px 60px -8px rgba(248, 40, 56, 0.9), inset 0 1px 0 rgba(255,255,255,0.35); }
.btn-ghost { color: var(--text); background: var(--panel); border-color: var(--line); backdrop-filter: blur(8px); }
.btn-ghost:hover { border-color: rgba(248, 40, 56, 0.6); background: rgba(248, 40, 56, 0.08); }
.btn-sm { padding: 10px 18px; font-size: 14px; border-radius: 12px; }
.btn-xl { padding: 18px 34px; font-size: 17px; border-radius: 16px; }
.btn:active { transform: scale(0.97); }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center; overflow: hidden;
  padding: 120px clamp(18px, 6vw, 96px) 80px;
}
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.28; filter: saturate(1.2) contrast(1.05); z-index: 0; }
.hero-shade {
  position: absolute; inset: 0; z-index: 1;
  background:
    radial-gradient(60% 70% at 75% 40%, rgba(248,40,56,0.22), transparent 60%),
    linear-gradient(180deg, rgba(10,10,12,0.2) 0%, rgba(10,10,12,0.75) 70%, var(--bg) 100%);
}
.hero-inner { position: relative; z-index: 2; width: 100%; max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(24px, 4vw, 64px); align-items: center; }
@media (max-width: 920px) { .hero-inner { grid-template-columns: 1fr; text-align: center; } .cta, .stats { justify-content: center; } .hero-art { order: -1; } }

.pill { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; color: #ffc7cc; padding: 6px 14px; border: 1px solid rgba(248,40,56,0.35); border-radius: 999px; background: rgba(248,40,56,0.08); }
.pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 0 var(--red); animation: pulse 1.8s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(248,40,56,.7); } 70% { box-shadow: 0 0 0 10px rgba(248,40,56,0); } 100% { box-shadow: 0 0 0 0 rgba(248,40,56,0); } }

h1 { font-family: var(--display); font-weight: 900; font-size: clamp(40px, 6.2vw, 92px); line-height: 0.98; letter-spacing: -0.01em; margin: 18px 0 18px; white-space: nowrap; }
@media (max-width: 560px) { h1 { font-size: 13.5vw; } }
h1 .ch { display: inline-block; opacity: 0; transform: translateY(40px) rotateX(-40deg); animation: charIn .9s var(--ease) forwards; animation-delay: calc(var(--i) * 45ms + 150ms); }
h1 .ch.sp { width: 0.3em; }
h1 .ch.red { color: var(--red); text-shadow: 0 0 30px rgba(248,40,56,0.55); }
@keyframes charIn { to { opacity: 1; transform: none; } }

.lead { font-size: clamp(16px, 1.6vw, 19px); color: #c9c9d2; max-width: 540px; }
.lead b { color: var(--text); font-weight: 600; }
.cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; align-items: center; }

.stats { display: flex; gap: clamp(20px, 4vw, 44px); margin-top: 44px; list-style: none; flex-wrap: wrap; }
.stats li { display: flex; flex-direction: column; }
.stats strong { font-family: var(--display); font-size: 30px; font-weight: 800; color: var(--text); font-variant-numeric: tabular-nums; }
.stats span { font-size: 13px; color: var(--muted); }

.hero-art { position: relative; perspective: 1200px; }
.hero-art img {
  position: relative; z-index: 2; width: 100%; height: auto; border-radius: 22px;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateZ(0);
  transition: transform .25s ease-out; will-change: transform;
  filter: drop-shadow(0 30px 60px rgba(248,40,56,0.35));
  animation: floaty 7s ease-in-out infinite;
}
@keyframes floaty { 0%,100% { translate: 0 0; } 50% { translate: 0 -14px; } }
.halo { position: absolute; inset: -12%; border-radius: 50%; background: radial-gradient(closest-side, rgba(248,40,56,0.35), transparent 70%); filter: blur(30px); animation: breathe 6s ease-in-out infinite; z-index: 1; }
@keyframes breathe { 0%,100% { transform: scale(0.95); opacity: 0.7; } 50% { transform: scale(1.08); opacity: 1; } }

.scroll-cue { position: absolute; bottom: 26px; left: 50%; translate: -50% 0; z-index: 3; width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--muted); animation: bob 2.2s ease-in-out infinite; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(8px); } }

/* sarlavha ichida bo'lmagan split (fallback) */
.split { }

/* ---------- bo'limlar ---------- */
.section { position: relative; padding: clamp(70px, 10vw, 120px) clamp(18px, 6vw, 96px); max-width: 1280px; margin: 0 auto; }
.sec-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.eyebrow { display: inline-block; font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--red2); font-weight: 700; margin-bottom: 14px; }
h2 { font-family: var(--display); font-weight: 800; font-size: clamp(28px, 4vw, 44px); line-height: 1.12; letter-spacing: -0.01em; }
.sec-head p { color: var(--muted); margin-top: 14px; font-size: 17px; }

/* reveal */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); transition-delay: var(--d, 0ms); }
.reveal.in { opacity: 1; transform: none; }

/* kartalar */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.card {
  --mx: 50%; --my: 50%;
  position: relative; overflow: hidden; padding: 28px 26px; border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,0.055), rgba(255,255,255,0.02));
  border: 1px solid var(--line);
  transition: transform .5s var(--ease), border-color .4s, box-shadow .5s;
}
.card::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(360px circle at var(--mx) var(--my), rgba(248,40,56,0.22), transparent 60%);
}
.card:hover { transform: translateY(-6px); border-color: rgba(248,40,56,0.45); box-shadow: 0 24px 60px -24px rgba(248,40,56,0.5); }
.card:hover::before { opacity: 1; }
.card .ico { font-size: 28px; width: 56px; height: 56px; display: grid; place-items: center; border-radius: 16px; background: rgba(248,40,56,0.1); border: 1px solid rgba(248,40,56,0.25); margin-bottom: 18px; }
.card h3 { font-size: 18px; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 15px; }

/* ko'rinish (screenshot) */
.showcase { padding-top: 40px; }
[data-sec] { scroll-margin-top: 84px; }
.shot {
  position: relative; border-radius: 22px; padding: 10px; background: linear-gradient(160deg, rgba(248,40,56,0.5), rgba(255,255,255,0.06) 40%, rgba(248,40,56,0.2));
  transform-style: preserve-3d; transition: transform .4s var(--ease);
}
.shot img { border-radius: 16px; width: 100%; height: auto; box-shadow: 0 40px 100px -30px rgba(0,0,0,0.9); }
.shot-glow { position: absolute; inset: -20px; border-radius: 40px; background: radial-gradient(closest-side, rgba(248,40,56,0.35), transparent 70%); filter: blur(40px); z-index: -1; }
.shine { position: absolute; inset: 10px; border-radius: 16px; pointer-events: none; background: linear-gradient(115deg, transparent 40%, rgba(255,255,255,0.12) 50%, transparent 60%); background-size: 250% 100%; animation: sweep 6s linear infinite; }
@keyframes sweep { from { background-position: 150% 0; } to { background-position: -100% 0; } }

/* qadamlar */
.steps { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; counter-reset: s; }
.steps li { position: relative; padding: 30px 26px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); }
.steps .num { font-family: var(--display); font-size: 42px; font-weight: 900; color: transparent; -webkit-text-stroke: 1px rgba(248,40,56,0.7); display: block; margin-bottom: 10px; }
.steps h3 { font-size: 18px; margin-bottom: 8px; }
.steps p { color: var(--muted); font-size: 15px; }

/* yuklab olish */
.dl { padding-top: 40px; }
.dl-card {
  position: relative; overflow: hidden; display: grid; grid-template-columns: 1.2fr 1fr; gap: 36px; align-items: center;
  padding: clamp(28px, 4vw, 56px); border-radius: 28px;
  background: linear-gradient(135deg, rgba(248,40,56,0.16), rgba(255,255,255,0.02) 60%);
  border: 1px solid rgba(248,40,56,0.35);
}
.dl-glow { position: absolute; width: 480px; height: 480px; right: -140px; top: -180px; background: radial-gradient(closest-side, rgba(248,40,56,0.45), transparent 70%); filter: blur(30px); pointer-events: none; animation: breathe 7s ease-in-out infinite; }
.dl-left h2 { margin: 10px 0 10px; }
.dl-left p { color: #d2d2da; }
.dl-left .btn { margin-top: 22px; }
.hash { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 12.5px; color: var(--muted); }
.hash code { word-break: break-all; font-size: 11.5px; }
.copy { background: var(--panel); border: 1px solid var(--line); color: var(--text); padding: 5px 12px; border-radius: 8px; cursor: pointer; font: inherit; font-size: 12px; transition: border-color .3s; }
.copy:hover { border-color: var(--red); }
.req { list-style: none; display: grid; gap: 14px; position: relative; z-index: 1; }
.req li { padding: 16px 18px; border-radius: 14px; background: rgba(0,0,0,0.35); border: 1px solid var(--line); font-size: 15px; color: #d6d6de; }
.req b { display: inline-block; min-width: 96px; color: var(--red2); font-weight: 700; }
@media (max-width: 820px) { .dl-card { grid-template-columns: 1fr; } }

/* yo'l xaritasi */
.road { max-width: 760px; margin: 0 auto; position: relative; padding-left: 34px; }
.road::before { content: ''; position: absolute; left: 9px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(var(--red), rgba(248,40,56,0.1)); }
.road-item { position: relative; display: flex; gap: 18px; padding-bottom: 36px; }
.road-item .dot { position: absolute; left: -34px; top: 4px; width: 20px; height: 20px; border-radius: 50%; background: var(--bg); border: 2px solid var(--red); }
.road-item .dot.done { background: var(--red); box-shadow: 0 0 20px rgba(248,40,56,0.7); }
.road-item h4 { font-family: var(--display); font-size: 16px; margin-bottom: 4px; }
.road-item p { color: var(--muted); font-size: 15px; }

/* savollar */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { padding: 20px 24px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); transition: border-color .3s, background .3s; }
.faq details[open] { border-color: rgba(248,40,56,0.4); background: rgba(248,40,56,0.05); }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 22px; color: var(--red2); transition: transform .35s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); margin-top: 12px; font-size: 15px; }

/* footer */
.foot { text-align: center; padding: 56px 20px 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; margin-top: 40px; }
.foot-brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 800; color: var(--text); margin-bottom: 12px; }
.foot a { color: var(--red2); }
.foot .legal { font-size: 12px; opacity: 0.7; margin-top: 10px; }

/* kamroq harakat (reduced motion) */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  h1 .ch { opacity: 1; transform: none; }
  .fx, .hero-video { display: none; }
}

/* feature icons, hero logo, auth pages */
.card .ico svg { width: 30px; height: 30px; display: block; }
.hero-logo { width: min(440px, 80%); height: auto; object-fit: contain; filter: drop-shadow(0 0 28px rgba(248,40,56,.45)); user-select: none; -webkit-user-drag: none; pointer-events: none; }
.hero-art img { -webkit-user-drag: none; user-select: none; }
.auth-wrap { min-height: 100vh; display: grid; place-items: center; padding: 96px 16px 48px; position: relative; z-index: 1; }
.auth-card { width: min(440px, 100%); background: linear-gradient(180deg, #16171d, #0e0f14); border: 1px solid #252832; border-radius: 18px; padding: 28px; box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.auth-card h1 { font-size: 26px; margin: 0 0 6px; white-space: normal; }
.auth-card p { color: #9aa0ae; margin: 0 0 18px; line-height: 1.5; font-size: 14.5px; }
.auth-form { display: flex; flex-direction: column; gap: 12px; }
.auth-form label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: #c7cbd6; font-weight: 600; }
.auth-form input { height: 44px; padding: 0 14px; background: #1a1c24; border: 1px solid #303440; border-radius: 10px; color: #f1f2f6; font: inherit; outline: 0; }
.auth-form input:focus { border-color: #e4202b; box-shadow: 0 0 0 3px rgba(228,32,43,.18); }
.auth-form .btn { height: 46px; }
.auth-msg { min-height: 20px; font-size: 13.5px; color: #ff7b7b; margin-top: 4px; }
.auth-links { display: flex; justify-content: space-between; gap: 12px; margin-top: 16px; font-size: 13.5px; }
.auth-links a { color: #9aa0ae; }
.auth-links a:hover { color: #f1f2f6; }
.code-box { font: 800 22px/1.2 Consolas, monospace; letter-spacing: 2px; text-align: center; background: #101116; border: 1px dashed #e4202b; border-radius: 12px; padding: 16px; user-select: all; color: #fff; margin: 14px 0; }
.warn-box { background: rgba(228,32,43,.08); border: 1px solid rgba(228,32,43,.35); border-radius: 12px; padding: 12px 14px; color: #ffd0d3; font-size: 13.5px; line-height: 1.5; }
.auth-card .copy-btn { width: 100%; }
.hidden { display: none !important; }
