/* =========================================================
   GKDEV — dizayn tokenlari va umumiy uslublar
   ========================================================= */
:root {
    /* Asosiy ranglar */
    --bg-main: #0B1120;
    --bg-deep: #070C1A;
    --bg-card: #111A2E;
    --surface: rgba(17, 26, 46, 0.62);
    --surface-strong: rgba(15, 23, 42, 0.85);
    --text-main: #F8FAFC;
    --text-soft: #CBD5E1;
    --text-muted: #94A3B8;
    --accent: #3B82F6;
    --accent-hover: #2563EB;
    --accent-cyan: #38BDF8;
    --violet: #8B5CF6;
    --border-color: #1E293B;
    --line: rgba(59, 130, 246, 0.18);
    --line-strong: rgba(96, 165, 250, 0.35);

    /* Gradientlar */
    --grad-primary: linear-gradient(90deg, #2563EB 0%, #4F6CF7 55%, #8B5CF6 100%);
    --grad-text: linear-gradient(90deg, #2F8CFF 0%, #4F7BFF 45%, #8B5CF6 100%);
    --grad-logo: linear-gradient(135deg, #2F8CFF 0%, #5B6CFF 55%, #8B5CF6 100%);

    /* Soyalar */
    --glow-blue: 0 0 0 1px rgba(59, 130, 246, 0.25), 0 10px 30px -8px rgba(59, 130, 246, 0.55);
    --shadow-card: 0 20px 40px -20px rgba(0, 0, 0, 0.6);

    /* O'lchamlar */
    --radius-sm: 8px;
    --radius: 14px;
    --radius-lg: 18px;
    --container: 1280px;
    --gutter: 32px;

    --font-sans: 'Inter', 'Manrope', system-ui, -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
    --font-script: 'Yellowtail', cursive;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body {
    font-family: var(--font-sans);
    background-color: var(--bg-main);
    background-image:
        radial-gradient(1200px 600px at 75% -10%, rgba(59, 130, 246, 0.10), transparent 60%),
        radial-gradient(900px 500px at 0% 30%, rgba(139, 92, 246, 0.06), transparent 60%);
    background-attachment: fixed;
    color: var(--text-main);
    line-height: 1.5;
    overflow-x: hidden;
    font-size: 15px;
    -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; transition: color .2s, background .2s, border-color .2s, opacity .2s; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button, input, textarea, select { font-family: inherit; }
:focus-visible { outline: 2px solid var(--accent-cyan); outline-offset: 3px; border-radius: 6px; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.text-gradient { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.text-accent { color: var(--accent-cyan); }

/* ---------- Tugmalar ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: 12px 24px; border-radius: 999px; font-weight: 600; font-size: 15px;
    cursor: pointer; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, border-color .25s, color .25s;
    border: 1px solid transparent; outline: none; white-space: nowrap; line-height: 1.2;
}
.btn i { font-size: .95em; }
.btn-primary {
    background: var(--grad-primary); color: #fff;
    box-shadow: 0 10px 30px -10px rgba(59, 130, 246, 0.8), inset 0 1px 0 rgba(255,255,255,.18);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -10px rgba(99, 102, 241, 0.9), inset 0 1px 0 rgba(255,255,255,.2); }
.btn-primary .fa-arrow-right { transition: transform .25s var(--ease); }
.btn-primary:hover .fa-arrow-right { transform: translateX(3px); }
.btn-outline {
    background: rgba(15, 23, 42, 0.35); border-color: rgba(148, 163, 184, 0.35); color: var(--text-main);
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.btn-outline:hover { border-color: rgba(96, 165, 250, 0.7); background: rgba(59, 130, 246, 0.08); transform: translateY(-2px); }
.btn-sm { padding: 9px 16px; font-size: 13px; gap: 8px; }
.btn-block { width: 100%; }

/* ---------- Bo'lim sarlavhalari ---------- */
.section { position: relative; padding: 48px 0; }
.section + .section { border-top: 1px solid rgba(59, 130, 246, 0.10); }
.eyebrow {
    display: inline-flex; align-items: center; gap: 12px;
    font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-cyan);
}
.eyebrow::before {
    content: ''; width: 34px; height: 3px; border-radius: 3px;
    background: linear-gradient(90deg, #38BDF8, #3B82F6); box-shadow: 0 0 12px rgba(56, 189, 248, .7);
}
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 28px; }
.section-head h2 { font-size: clamp(28px, 3vw, 38px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; margin: 6px 0 8px; }
.section-head p { color: var(--text-soft); font-size: 15px; max-width: 640px; opacity: .9; }
.link-all { color: var(--accent-cyan); font-weight: 600; font-size: 14px; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.link-all i { transition: transform .25s var(--ease); }
.link-all:hover { color: #7DD3FC; }
.link-all:hover i { transform: translateX(4px); }

/* ---------- Shisha (glass) panel ---------- */
.glass {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), var(--shadow-card);
}

/* ---------- Xabarlar ---------- */
.messages-container { position: fixed; top: 96px; right: 20px; z-index: 1000; }
.alert { padding: 12px 20px; border-radius: 10px; background: #10B981; color: white; font-weight: 500; font-size: 14px; box-shadow: 0 8px 24px rgba(0,0,0,0.35); margin-bottom: 10px; animation: slideIn 0.3s forwards; }
.alert-error { background: #EF4444; }
@keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* ---------- Scroll animatsiyalari ---------- */
.fade-up { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--delay, 0s); }
.fade-up.show-animate { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
    .fade-up { opacity: 1; transform: none; }
}

/* ---------- Light Mode (Kunduzgi rejim) ---------- */
body.light-mode {
    --bg-main: #F5F7FB;
    --bg-deep: #EEF2F9;
    --bg-card: #FFFFFF;
    --surface: rgba(255, 255, 255, 0.78);
    --surface-strong: rgba(255, 255, 255, 0.95);
    --text-main: #0F172A;
    --text-soft: #334155;
    --text-muted: #64748B;
    --border-color: #E2E8F0;
    --line: rgba(37, 99, 235, 0.16);
    --line-strong: rgba(37, 99, 235, 0.35);
    --accent-cyan: #2563EB;
    --shadow-card: 0 20px 40px -24px rgba(15, 23, 42, 0.25);
    background-image:
        radial-gradient(1200px 600px at 75% -10%, rgba(59, 130, 246, 0.10), transparent 60%),
        radial-gradient(900px 500px at 0% 30%, rgba(139, 92, 246, 0.07), transparent 60%);
}
body.light-mode .btn-outline { background: rgba(255,255,255,.7); color: var(--text-main); border-color: rgba(15, 23, 42, .15); }
body.light-mode .form-control { background: #F1F5F9; color: #0F172A; border-color: #CBD5E1; }
body.light-mode .tag { background: #EEF2FF; color: #334155; border-color: #E0E7FF; }
body.light-mode .timeline-item p { color: #475569; }

@media (max-width: 768px) {
    :root { --gutter: 18px; }
    .section { padding: 44px 0; }
    .section-head { flex-direction: column; align-items: flex-start; gap: 12px; }
}

/* ---------- Ichki sahifalar uchun umumiy yordamchilar ---------- */
.py-5 { padding-top: 48px; padding-bottom: 72px; }
.section-header { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 28px; }
.section-header h2 { font-size: clamp(28px, 3vw, 38px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; margin: 6px 0 8px; }
.section-header p { color: var(--text-soft); font-size: 15px; max-width: 600px; }
.section-title {
    display: inline-flex; align-items: center; gap: 12px; font-size: 12px; font-weight: 700;
    letter-spacing: .08em; text-transform: uppercase; color: var(--accent-cyan);
}
.section-title::before { content: ''; width: 34px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, #38BDF8, #3B82F6); box-shadow: 0 0 12px rgba(56,189,248,.7); }
