/* ============================================================
   BASE — reset, tipografiya, fon, umumiy layout
   ============================================================ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg-0);
  color: var(--text-1);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, video, canvas { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; }

::selection { background: rgba(4, 159, 217, 0.4); color: #fff; }

/* Scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-0); }
::-webkit-scrollbar-thumb { background: #1b2a3d; border-radius: 5px; border: 2px solid var(--bg-0); }
::-webkit-scrollbar-thumb:hover { background: var(--net-blue-deep); }

:focus-visible {
  outline: 2px solid var(--net-blue);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Fon effektlari ---------- */
.bg-grid {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    radial-gradient(rgba(4, 159, 217, 0.10) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, #000 0%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, #000 0%, transparent 100%);
  opacity: 0.55;
}

.bg-glow {
  position: fixed; width: 640px; height: 640px; border-radius: 50%;
  filter: blur(130px); pointer-events: none; z-index: 0;
}
.bg-glow-1 { top: -240px; right: -200px; background: var(--net-blue-deep); opacity: 0.34; }
.bg-glow-2 { bottom: 12%; left: -260px; background: var(--net-blue); opacity: 0.14; }

main { position: relative; z-index: 1; }

/* ---------- Konteyner va section ---------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(1.1rem, 4vw, 2rem);
}

section { position: relative; padding: var(--section-pad) 0; scroll-margin-top: var(--nav-h); }
section.alt { background: rgba(4, 159, 217, 0.025); }

/* ---------- Tipografiya ---------- */
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; letter-spacing: -0.02em; }

.section-header { text-align: center; max-width: 720px; margin: 0 auto clamp(2.5rem, 6vw, 4rem); }

.section-badge {
  display: inline-flex; align-items: center; gap: 0.55em;
  font-family: var(--font-mono); font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--net-blue-light);
  border: 1px solid var(--stroke);
  background: rgba(4, 159, 217, 0.07);
  padding: 0.45em 1.1em; border-radius: 100px;
  margin-bottom: 1.1rem;
}
.section-badge::before {
  content: ''; width: 7px; height: 7px; border-radius: 50%;
  background: var(--net-green);
  box-shadow: 0 0 8px var(--net-green);
  animation: pulse-dot 2.2s ease-in-out infinite;
}

.section-title {
  font-size: clamp(1.9rem, 4.4vw, 2.9rem);
  font-weight: 700;
  margin-bottom: 0.9rem;
}
.section-title .accent {
  background: var(--grad-text);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.section-subtitle { color: var(--text-2); font-size: clamp(1rem, 1.9vw, 1.12rem); }

/* ---------- Tugmalar ---------- */
.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6em;
  font-family: var(--font-display); font-weight: 600; font-size: 1rem;
  padding: 0.85em 1.7em; border-radius: var(--radius-s);
  border: 1px solid transparent;
  transition: transform var(--t-fast) var(--ease-out), box-shadow var(--t-fast), border-color var(--t-fast), background var(--t-fast);
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn svg { flex-shrink: 0; }

.btn-primary { background: var(--grad-blue); color: #fff; box-shadow: 0 10px 26px -8px rgba(4, 159, 217, 0.55); }
.btn-primary:hover { box-shadow: 0 16px 34px -8px rgba(4, 159, 217, 0.7); }

.btn-ghost {
  background: rgba(4, 159, 217, 0.06); color: var(--text-1);
  border-color: var(--stroke-strong);
}
.btn-ghost:hover { background: rgba(4, 159, 217, 0.14); border-color: var(--net-blue); }

.btn-gold { background: var(--grad-gold); color: #14100a; box-shadow: 0 10px 26px -8px rgba(232, 184, 48, 0.4); }

/* Ping ripple (JS qo'shadi) */
.btn .ripple {
  position: absolute; border-radius: 50%; pointer-events: none;
  background: rgba(255, 255, 255, 0.35);
  transform: scale(0); animation: ripple 0.6s ease-out forwards;
}

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"].in { transition-delay: 0.08s; }
.reveal[data-delay="2"].in { transition-delay: 0.16s; }
.reveal[data-delay="3"].in { transition-delay: 0.24s; }

/* ---------- Util ---------- */
.mono { font-family: var(--font-mono); }
.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
