/* ── Tokens ─────────────────────────────────────────────── */
:root {
    --navy-dark: #0d1b2a;
    --navy-mid: #1b3a5c;
    --radius: 1.25rem;
    --ease-spring: 0.32s cubic-bezier(0.34, 1.56, 0.64, 1);

    /* system card gradients */
    --g1-a: #1565c0;
    --g1-b: #42a5f5; /* CMD        – blue   */
    --g2-a: #6a1b9a;
    --g2-b: #ce93d8; /* Backoffice – purple */
    --g3-a: #3d240c;
    --g3-b: #713600; /* PDF        – red    */
    --g4-a: #1b5e20;
    --g4-b: #81c784; /* BI         – green  */
    --g5-a: #c0392b;
    --g5-b: #f4a28c; /* Wiki       – salmon */
}

html,
body {
    font-family: "Inter", sans-serif;
}
body {
    background: #f4f6fb;
}

/* ── Navbar ─────────────────────────────────────────────── */
.top-nav {
    background: var(--navy-dark);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.top-nav .navbar-brand a {
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.top-nav .navbar-brand a:hover {
    background: transparent;
    opacity: 0.85;
}

.top-nav .navbar-end a.navbar-item {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    transition: color 0.2s;
}

.top-nav .navbar-end a.navbar-item:hover {
    background: transparent;
    color: #fff;
}

.navbar-logo {
    height: 28px;
    width: 28px;
    margin-right: 0.55rem;
    filter: brightness(0) invert(1);
}

/* ── Hero ───────────────────────────────────────────────── */
.hero-panel {
    background: linear-gradient(
        135deg,
        var(--navy-dark) 0%,
        var(--navy-mid) 100%
    );
    position: relative;
    overflow: hidden;
}

.hero-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(
            ellipse 60% 55% at 80% 20%,
            rgba(66, 165, 245, 0.18) 0%,
            transparent 65%
        ),
        radial-gradient(
            ellipse 45% 40% at 10% 80%,
            rgba(206, 147, 216, 0.12) 0%,
            transparent 60%
        );
    pointer-events: none;
}

.hero-panel .hero-body {
    position: relative;
    padding: 4rem 1.5rem 3.5rem;
}

.kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    padding: 0.28rem 0.9rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.1rem;
}

.kicker-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #42a5f5;
    animation: blink 2s ease-in-out infinite;
}

@keyframes blink {
    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.4;
        transform: scale(1.35);
    }
}

.hero-heading {
    color: #fff;
    font-size: clamp(1.9rem, 4vw, 2.7rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 0.6rem;
}

.hero-heading em {
    font-style: normal;
    background: linear-gradient(90deg, #90caf9, #ce93d8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-sub {
    color: rgba(255, 255, 255, 0.58);
    font-size: 0.97rem;
    font-weight: 400;
    margin-top: 0.4rem;
}

.hero-bar {
    width: 48px;
    height: 4px;
    border-radius: 999px;
    background: linear-gradient(90deg, #42a5f5, #ce93d8);
    margin: 1.2rem auto 0;
}

/* ── Stats strip ────────────────────────────────────────── */
.stats-strip {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: 0 2px 14px rgba(0, 0, 0, 0.08);
    padding: 1.35rem 1.8rem;
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 1rem;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
}

.stat-val {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--navy-mid);
    letter-spacing: -0.02em;
    line-height: 1;
}

.stat-lbl {
    font-size: 0.7rem;
    font-weight: 500;
    color: #8a94a6;
    text-align: center;
    letter-spacing: 0.04em;
}

.stat-sep {
    width: 1px;
    height: 34px;
    background: #e8eaf0;
}

/* ── Section label ──────────────────────────────────────── */
.sec-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #8a94a6;
    margin-bottom: 1.35rem;
}

/* ── Systems section ────────────────────────────────────── */
.systems-section {
    padding: 2.8rem 1.5rem 4rem;
}

/* ── System card ────────────────────────────────────────── */
.sys-card {
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    position: relative;
    cursor: pointer;
    height: 100%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition:
        transform var(--ease-spring),
        box-shadow var(--ease-spring);
}

.sys-card:hover {
    transform: translateY(-9px) scale(1.026);
    box-shadow:
        0 22px 50px rgba(0, 0, 0, 0.18),
        0 6px 16px rgba(0, 0, 0, 0.12);
    text-decoration: none;
}

/* gradient layer */
.sys-card-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.sys-card-1 .sys-card-bg {
    background: linear-gradient(140deg, var(--g1-a), var(--g1-b));
}
.sys-card-2 .sys-card-bg {
    background: linear-gradient(140deg, var(--g2-a), var(--g2-b));
}
.sys-card-3 .sys-card-bg {
    background: linear-gradient(140deg, var(--g3-a), var(--g3-b));
}
.sys-card-4 .sys-card-bg {
    background: linear-gradient(140deg, var(--g4-a), var(--g4-b));
}
.sys-card-wiki .sys-card-bg {
    background: linear-gradient(140deg, var(--g5-a), var(--g5-b));
}

/* shimmer overlay */
.sys-card::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        radial-gradient(
            ellipse 70% 55% at 85% 10%,
            rgba(255, 255, 255, 0.18) 0%,
            transparent 60%
        ),
        radial-gradient(
            ellipse 40% 35% at 15% 85%,
            rgba(255, 255, 255, 0.09) 0%,
            transparent 55%
        );
    pointer-events: none;
}

/* content layer */
.sys-card-body {
    position: relative;
    z-index: 2;
    padding: 2rem 1.8rem 1.75rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    box-sizing: border-box;
}

/* icon badge */
.sys-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.4rem;
    flex-shrink: 0;
    transition:
        transform var(--ease-spring),
        background 0.3s;
}

.sys-card:hover .sys-icon {
    transform: scale(1.12) rotate(-4deg);
    background: rgba(255, 255, 255, 0.28);
}

/* pill tag */
.sys-tag {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    padding: 0.18rem 0.65rem;
    font-size: 0.64rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 0.75rem;
    width: fit-content;
}

.sys-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
    letter-spacing: -0.01em;
    margin-bottom: 0.55rem;
}

.sys-desc {
    font-size: 0.84rem;
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.55;
    flex: 1;
}

/* footer row */
.sys-cta {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin-top: 1.6rem;
    padding-top: 1.1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 0.02em;
    transition:
        gap 0.2s,
        color 0.2s;
}

.sys-card:hover .sys-cta {
    gap: 0.72rem;
    color: #fff;
}

.sys-arrow {
    display: inline-flex;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    flex-shrink: 0;
    transition:
        transform var(--ease-spring),
        background 0.3s;
}

.sys-card:hover .sys-arrow {
    transform: translateX(5px);
    background: rgba(255, 255, 255, 0.35);
}

/* equal-height column helper */
.equal-cols {
    align-items: stretch;
}
.equal-cols .column {
    display: flex;
    flex-direction: column;
}
.equal-cols .column > a {
    flex: 1;
}

/* ── Site institucional card ────────────────────────────── */
.site-card {
    border-radius: var(--radius);
    background: linear-gradient(
        135deg,
        var(--navy-dark) 0%,
        var(--navy-mid) 100%
    );
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.13);
    overflow: hidden;
    position: relative;
    display: block;
    text-decoration: none;
    transition:
        transform var(--ease-spring),
        box-shadow var(--ease-spring);
}

.site-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(
        ellipse 60% 50% at 90% 10%,
        rgba(66, 165, 245, 0.22) 0%,
        transparent 60%
    );
    pointer-events: none;
}

.site-card:hover {
    transform: translateY(-6px) scale(1.018);
    box-shadow: 0 20px 46px rgba(0, 0, 0, 0.2);
    text-decoration: none;
}

.site-inner {
    position: relative;
    z-index: 1;
    padding: 1.7rem 2rem;
    display: flex;
    align-items: center;
    gap: 1.4rem;
}

.site-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    flex-shrink: 0;
    transition:
        transform var(--ease-spring),
        background 0.3s;
}

.site-card:hover .site-icon {
    transform: scale(1.1) rotate(-4deg);
    background: rgba(255, 255, 255, 0.18);
}

.site-info {
    flex: 1;
    min-width: 0;
}

.site-eyebrow {
    font-size: 0.64rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
    margin-bottom: 0.25rem;
}

.site-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.25;
    margin-bottom: 0.18rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.site-url {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.42);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.site-badge {
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    padding: 0.28rem 0.85rem;
    font-size: 0.7rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 0.04em;
    transition:
        background 0.25s,
        color 0.25s;
}

.site-card:hover .site-badge {
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
}

/* ── Footer ─────────────────────────────────────────────── */
.page-footer {
    background: var(--navy-dark);
    padding: 2.2rem 1.5rem;
}

.page-footer .foot-text {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.78rem;
    line-height: 1.65;
}

.page-footer .foot-text strong {
    color: rgba(255, 255, 255, 0.7);
    font-weight: 700;
}

.page-footer a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.2s;
}

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

.foot-copy {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.22);
    text-align: center;
    margin-top: 1.5rem;
}
