:root {
    --bg: #05070b;
    --bg-2: #0b1018;
    --card: #121826;
    --line: rgba(255, 255, 255, 0.08);
    --text: #f4f7fb;
    --muted: #9aa8bb;
    --blue: #3b9bff;
    --blue-2: #2f7de0;
    --purple: #a78bfa;
    --green: #4ade80;
    --orange: #fb923c;
    --red: #f87171;
    --radius: 18px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: Inter, system-ui, sans-serif;
    line-height: 1.6;
}

a { color: inherit; text-decoration: none; }

img { max-width: 100%; }

.navbar-zerix {
    background: rgba(5, 7, 11, 0.88);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
    padding: 0.85rem 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    font-size: 0.95rem;
}

.brand-mark {
    width: 34px;
    height: 34px;
    display: block;
}

.brand-logo {
    height: 46px;
    width: auto;
    display: block;
    background: transparent;
}

.footer-logo {
    height: 38px;
    width: auto;
    display: block;
    background: transparent;
}

.hero-logo {
    position: absolute;
    right: 4%;
    top: 50%;
    width: min(46vw, 520px);
    transform: translateY(-50%);
    pointer-events: none;
    background: transparent;
    filter: drop-shadow(0 0 18px rgba(0, 180, 255, 0.25));
}

.navbar-zerix .nav-link {
    color: rgba(255, 255, 255, 0.78) !important;
    font-size: 0.95rem;
    padding: 0.4rem 0.85rem !important;
}

.navbar-zerix .nav-link.active,
.navbar-zerix .nav-link:hover {
    color: #fff !important;
}

.navbar-zerix .nav-link.active {
    box-shadow: inset 0 -2px 0 var(--blue);
}

.btn-blue {
    background: var(--blue);
    color: #fff;
    border: 0;
    border-radius: 999px;
    padding: 0.75rem 1.25rem;
    font-weight: 600;
}

.btn-blue:hover { background: var(--blue-2); color: #fff; }

.btn-ghost {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 999px;
    padding: 0.55rem 1rem;
    font-weight: 600;
}

.btn-ghost:hover { background: #fff; color: #000; }

.btn-outline-tone {
    background: transparent;
    border-radius: 999px;
    padding: 0.45rem 0.9rem;
    font-weight: 600;
    font-size: 0.9rem;
}

.kicker {
    color: var(--blue);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.accent { color: var(--blue); }

.hero {
    position: relative;
    min-height: calc(100vh - 76px);
    display: flex;
    align-items: center;
    overflow: hidden;
    background:
        linear-gradient(90deg, rgba(5, 7, 11, 0.94) 0%, rgba(5, 7, 11, 0.62) 42%, rgba(5, 7, 11, 0.28) 100%),
        url("../img/hero-city.jpg") center / cover no-repeat;
}

.hero-z {
    position: absolute;
    right: 6%;
    top: 50%;
    width: min(42vw, 460px);
    transform: translateY(-50%);
    filter: drop-shadow(0 0 28px rgba(59, 155, 255, 0.55));
    pointer-events: none;
}

.hero h1 {
    font-size: clamp(2.4rem, 6vw, 4.6rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 0.95;
    text-transform: uppercase;
    max-width: 11ch;
}

.hero p.lead {
    color: var(--muted);
    max-width: 34rem;
    font-size: 1.05rem;
}

.section { padding: 5.5rem 0; }

.section-head { max-width: 720px; }

.section-head h2 {
    font-size: clamp(1.7rem, 3.4vw, 2.6rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    text-transform: uppercase;
}

.company-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.4rem 1.25rem 1.3rem;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.company-icon {
    width: 42px;
    height: 42px;
    margin-bottom: 1rem;
}

.company-card h3 {
    font-size: 0.92rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    margin-bottom: 0.7rem;
}

.company-card p {
    color: var(--muted);
    font-size: 0.92rem;
    flex: 1;
}

.tone-blue { color: var(--blue); }
.tone-purple { color: var(--purple); }
.tone-green { color: var(--green); }
.tone-orange { color: var(--orange); }
.tone-red { color: var(--red); }

.btn-outline-tone.tone-blue { color: var(--blue); border: 1px solid var(--blue); }
.btn-outline-tone.tone-purple { color: var(--purple); border: 1px solid var(--purple); }
.btn-outline-tone.tone-green { color: var(--green); border: 1px solid var(--green); }
.btn-outline-tone.tone-orange { color: var(--orange); border: 1px solid var(--orange); }
.btn-outline-tone.tone-red { color: var(--red); border: 1px solid var(--red); }

.stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.5rem;
    background: #151b27;
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 1.4rem 1rem;
}

.stat {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    justify-content: center;
    padding: 0.6rem;
}

@media (max-width: 767.98px) {
    .stats { grid-template-columns: 1fr 1fr; }
}

.stat strong {
    display: block;
    font-size: 1.35rem;
    line-height: 1;
}

.stat span { color: var(--muted); font-size: 0.92rem; }

.page-hero {
    padding: 6.5rem 0 3.5rem;
    background:
        radial-gradient(800px 300px at 80% 0%, rgba(59, 155, 255, 0.18), transparent 60%),
        var(--bg);
    border-bottom: 1px solid var(--line);
}

.page-hero h1 {
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -0.03em;
}

.panel {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.6rem;
}

.news-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    height: 100%;
}

.news-card .body { padding: 1.25rem; }
.news-card .meta { color: var(--blue); font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; }

.form-control, .form-select {
    background: #0d1320;
    border: 1px solid var(--line);
    color: var(--text);
    border-radius: 12px;
    padding: 0.75rem 0.9rem;
}

.form-control:focus, .form-select:focus {
    background: #0d1320;
    color: var(--text);
    border-color: var(--blue);
    box-shadow: 0 0 0 0.2rem rgba(59, 155, 255, 0.15);
}

.footer-zerix {
    border-top: 1px solid var(--line);
    padding: 1.4rem 0;
    color: var(--muted);
    font-size: 0.9rem;
}

.footer-zerix a:hover { color: #fff; }

.navbar-toggler { border-color: rgba(255,255,255,0.25); }
.navbar-toggler-icon { filter: invert(1); }

.text-secondary { color: var(--muted) !important; }

.form-label { color: var(--text); font-weight: 500; }

.form-select option { background: #0d1320; color: var(--text); }

.alert-success {
    background: #0f2a1c;
    border: 1px solid #4ade80;
    color: #d1fae5;
}

.alert-danger {
    background: #2a1216;
    border: 1px solid #f87171;
    color: #fecaca;
}

.company-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1rem;
}

.company-grid-single,
.company-grid-single {
    grid-template-columns: minmax(0, 420px);
    justify-content: center;
}

.company-card:hover {
    border-color: rgba(255, 255, 255, 0.16);
}

.company-icon i {
    filter: drop-shadow(0 0 10px currentColor);
}

.btn-outline-tone:hover { background: rgba(255, 255, 255, 0.05); color: inherit; }

.page-hero p {
    color: var(--muted);
    max-width: 42rem;
    margin-bottom: 0;
}

.company-detail { scroll-margin-top: 6rem; }

.company-detail h2 {
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.legal p, .legal li { color: var(--muted); }

@media (max-width: 1199.98px) {
    .company-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .company-grid-single,
    .company-grid-single { grid-template-columns: minmax(0, 420px); }
}

@media (max-width: 991.98px) {
    .hero-z, .hero-logo { opacity: 0.28; right: -8%; }
    .hero { min-height: 78vh; }
}

@media (max-width: 575.98px) {
    .company-grid { grid-template-columns: 1fr; }
}

.blog-list { max-width: 860px; }
.news-card-row h2 a:hover { color: var(--blue); }
.blog-pager { margin-top: 2rem; }
.pagination-zerix { gap: 0.4rem; }
.pagination-zerix .page-link {
    background: var(--card);
    border: 1px solid var(--line);
    color: var(--text);
    border-radius: 999px;
    padding: 0.45rem 0.9rem;
}
.pagination-zerix .page-item.active .page-link,
.pagination-zerix .page-link:hover {
    background: var(--blue);
    border-color: var(--blue);
    color: #fff;
}
.pagination-zerix .page-item.disabled .page-link {
    background: transparent;
    color: var(--muted);
}
.article-wrap { max-width: 760px; }
.article-body p { color: var(--muted); }
.article-body p:first-child { color: var(--text); }

.admin-body { min-height: 100vh; }
.admin-userbar {
    border-bottom: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.85rem;
    padding: 0.55rem 0;
}
.admin-login {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}
.admin-login-card { width: min(100%, 420px); }
.admin-table {
    color: var(--text);
    --bs-table-bg: transparent;
    --bs-table-color: var(--text);
    --bs-table-border-color: var(--line);
}
.admin-table th {
    color: var(--muted);
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.admin-body-field { min-height: 280px; }
.status-pill {
    display: inline-block;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted);
    font-size: 0.78rem;
    padding: 0.2rem 0.7rem;
}
.status-pill.is-live {
    border-color: rgba(74, 222, 128, 0.4);
    color: var(--green);
}
.btn-danger-ghost { border-color: rgba(248, 113, 113, 0.45); color: var(--red); }
.form-check-input {
    background-color: #0d1320;
    border-color: var(--line);
}
.form-check-input:checked {
    background-color: var(--blue);
    border-color: var(--blue);
}
