/* Starex Docs — bosh sahifa dizayni */

:root {
    --brand: #192189;
    --brand-400: #3742bd;
    --brand-050: #eef0fb;
    --accent: #b3d925;
    --ink: #111633;
    --muted: #5c6280;
    --line: #e4e7f2;
    --bg: #f5f6fb;
}

body {
    background: var(--bg);
    color: var(--ink);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    /* Sticky footer: kontent kalta bo'lsa ham footer pastda qoladi */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ---------- Navbar ---------- */
.navbar-home {
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: .6rem 0;
    box-shadow: 0 1px 12px rgba(17, 22, 51, .04);
}

.navbar-home .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: .75rem;
}

.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand img { height: 34px; width: auto; display: block; }

.brand .brand-docs {
    margin-left: .7rem;
    padding-left: .7rem;
    border-left: 1px solid var(--line);
    font-size: .76rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--brand);
}

/* ---------- Til tanlash ---------- */
.lang-switch {
    display: inline-flex;
    align-items: center;
    background: #f0f1f8;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 3px;
}

.lang-switch a {
    padding: .2rem .62rem;
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .04em;
    color: var(--muted);
    text-decoration: none;
    transition: background .15s ease, color .15s ease;
}

.lang-switch a:hover { color: var(--brand); background: #fff; text-decoration: none; }

.lang-switch a.active {
    background: var(--brand);
    color: #fff;
    box-shadow: 0 2px 6px rgba(25, 33, 137, .28);
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #192189 0%, #2a35b4 100%);
    color: #fff;
    padding: 4.2rem 0 3.6rem;
    text-align: center;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 80% -12%, rgba(179, 217, 37, .2), transparent 46%),
                radial-gradient(circle at 6% 112%, rgba(255, 255, 255, .12), transparent 42%);
    pointer-events: none;
}

.hero > .container { position: relative; z-index: 1; }
.hero img { height: 58px; width: auto; margin-bottom: 1.5rem; }
.hero h1 { font-size: 2.5rem; font-weight: 700; letter-spacing: -.015em; margin-bottom: .6rem; }
.hero p { color: rgba(255, 255, 255, .82); font-size: 1.06rem; margin-bottom: 0; }

.hero .hero-rule {
    width: 54px;
    height: 4px;
    background: var(--accent);
    border-radius: 4px;
    margin: 1.4rem auto 0;
}

/* ---------- Kartalar ---------- */
.doc-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 1.6rem;
    text-decoration: none;
    transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

a.doc-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 32px rgba(17, 22, 51, .1);
    border-color: #ccd1e9;
    text-decoration: none;
}

.doc-card .doc-head { display: flex; align-items: center; margin-bottom: 1.1rem; }

.doc-card .doc-icon {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 13px;
    background: var(--brand-050);
    color: var(--brand);
    font-size: 1.2rem;
}

.doc-card .doc-title {
    margin: 0 0 0 .9rem;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--ink);
}

.doc-card p { color: var(--muted); font-size: .95rem; margin-bottom: 1.2rem; }

.doc-card .doc-more {
    margin-top: auto;
    color: var(--brand);
    font-weight: 600;
    font-size: .92rem;
}

.doc-card .doc-more i { transition: transform .16s ease; }
a.doc-card:hover .doc-more i { transform: translateX(4px); }

.doc-card.is-soon { opacity: .75; }
.doc-card.is-soon .doc-icon { background: #f0f1f6; color: #9aa0b8; }

.badge-soon {
    align-self: flex-start;
    margin-top: auto;
    background: #eef0f6;
    color: #6b7290;
    border-radius: 999px;
    padding: .28rem .75rem;
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
}

/* ---------- Footer ---------- */
.footer-home {
    margin-top: auto;
    background: var(--brand);
    color: rgba(255, 255, 255, .75);
    padding: 2.2rem 0;
    text-align: center;
    font-size: .9rem;
}

.footer-home img { height: 26px; width: auto; margin-bottom: .85rem; }
.footer-home p { margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 575.98px) {
    .brand img { height: 26px; }
    .brand .brand-docs { display: none; }
    .hero { padding: 3rem 0 2.6rem; }
    .hero img { height: 46px; }
    .hero h1 { font-size: 2rem; }
}
