
/* KATYUSHA-SECURITY — Página Sistemas Operativos */

.os-page {
    --os-bg: #080808;
    --os-surface: #101010;
    --os-border: rgba(255, 255, 255, .11);
    --os-text: #f4f4f4;
    --os-muted: #a0a0a0;
    --os-red: #d9363e;
    background: var(--os-bg);
    color: var(--os-text);
    overflow: hidden;
}

.os-container {
    width: min(1200px, calc(100% - 48px));
    margin-inline: auto;
}

.os-page a {
    text-decoration: none;
}

.os-page a:focus-visible {
    outline: 2px solid var(--os-red);
    outline-offset: 5px;
}

/* Hero */

.os-hero {
    min-height: 610px;
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--os-border);
    background: #080808;
}

.os-hero-bg,
.os-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.os-hero-bg {
    background-image: url("../img/debian.avif");
    background-position: center;
    background-size: cover;
    opacity: .48;
    transform: scale(1.02);
    animation: os-background-in 1.2s ease both;
}

.os-hero-overlay {
    background:
        linear-gradient(90deg, rgba(5, 5, 5, .98) 0%,
            rgba(5, 5, 5, .82) 48%, rgba(5, 5, 5, .45) 100%),
        linear-gradient(0deg, #080808 0%, transparent 35%);
}

.os-hero-content {
    padding-top: 92px;
    padding-bottom: 100px;
    position: relative;
}

.os-eyebrow,
.os-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #bdbdbd;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.os-status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--os-red);
    box-shadow: 0 0 12px rgba(217, 54, 62, .55);
}

.os-hero h1 {
    max-width: 820px;
    margin: 28px 0 20px;
    font-size: clamp(2.7rem, 6.2vw, 5.6rem);
    line-height: 1.02;
    letter-spacing: -.065em;
    font-weight: 800;
}

.os-hero h1 span {
    color: #a7a7a7;
}

.os-hero-content > p {
    max-width: 610px;
    margin: 0;
    color: #c0c0c0;
    font-size: 1.05rem;
    line-height: 1.85;
}

.os-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.os-button {
    min-height: 47px;
    padding: 0 19px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    border: 1px solid transparent;
    font-size: .87rem;
    font-weight: 700;
    transition: background .25s ease, border-color .25s ease,
                transform .25s ease;
}

.os-button:hover {
    transform: translateY(-2px);
}

.os-button-primary {
    background: #f2f2f2;
    color: #090909;
}

.os-button-primary:hover {
    background: #fff;
}

.os-button-outline {
    border-color: rgba(255, 255, 255, .24);
    color: #f4f4f4;
    background: rgba(10, 10, 10, .35);
}

.os-button-outline:hover {
    border-color: rgba(255, 255, 255, .6);
    background: rgba(255, 255, 255, .06);
}

.os-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-top: 45px;
    color: #b7b7b7;
    font-size: .78rem;
}

.os-hero-meta span {
    display: inline-flex;
    align-items: center;
    gap: 9px;
}

.os-hero-meta i {
    color: #ededed;
}

.os-hero-index {
    position: absolute;
    right: max(24px, calc((100% - 1200px) / 2));
    bottom: 27px;
    color: #858585;
    font-size: .7rem;
    letter-spacing: .16em;
}

/* Introdução */

.os-intro {
    padding-top: 100px;
    padding-bottom: 72px;
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    align-items: end;
    gap: 55px;
}

.os-kicker {
    color: #999;
}

.os-intro h2,
.os-section-heading h2 {
    margin: 17px 0 0;
    font-size: clamp(2rem, 3.7vw, 3.15rem);
    line-height: 1.12;
    letter-spacing: -.045em;
}

.os-intro h2 span {
    color: #929292;
}

.os-intro > p {
    margin: 0;
    max-width: 490px;
    color: var(--os-muted);
    font-size: .95rem;
    line-height: 1.9;
}

/* Catálogo */

.os-catalog {
    padding-top: 24px;
    padding-bottom: 100px;
    scroll-margin-top: 100px;
}

.os-section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 32px;
}

.os-section-heading h2 {
    margin-top: 12px;
}

.os-counter {
    padding: 9px 12px;
    border: 1px solid var(--os-border);
    color: #b0b0b0;
    font-size: .7rem;
    letter-spacing: .12em;
    white-space: nowrap;
}

.os-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.os-card {
    position: relative;
    min-width: 0;
    display: flex;
    flex-direction: column;
    padding: 23px;
    border: 1px solid var(--os-border);
    background: linear-gradient(145deg, #121212, #0b0b0b);
    transition: transform .28s ease, border-color .28s ease,
                background .28s ease;
}

.os-card::before {
    content: "";
    position: absolute;
    top: -1px;
    left: 22px;
    right: 22px;
    height: 1px;
    background: transparent;
    transition: background .28s ease;
}

.os-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, .28);
    background: linear-gradient(145deg, #171717, #0c0c0c);
}

.os-card:hover::before {
    background: var(--os-red);
}

.os-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.os-number {
    color: #747474;
    font-size: .72rem;
    letter-spacing: .12em;
}

.os-tag {
    padding: 6px 9px;
    border: 1px solid rgba(255, 255, 255, .12);
    color: #bcbcbc;
    font-size: .66rem;
}

.os-logo {
    height: 112px;
    margin: 18px 0 19px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.os-logo img {
    display: block;
    max-width: 124px;
    max-height: 92px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(1);
    opacity: .9;
    transition: filter .3s ease, opacity .3s ease, transform .3s ease;
}

.os-card:hover .os-logo img {
    filter: grayscale(0);
    opacity: 1;
    transform: scale(1.04);
}

.os-logo-icon {
    color: #dedede;
    font-size: 3.6rem;
    transition: color .25s ease, transform .25s ease;
}

.os-card:hover .os-logo-icon {
    color: #fff;
    transform: translateY(-3px);
}

.os-card h3 {
    margin: 0 0 12px;
    font-size: 1.24rem;
    letter-spacing: -.025em;
}

.os-card > p {
    flex: 1;
    margin: 0 0 24px;
    color: var(--os-muted);
    font-size: .86rem;
    line-height: 1.8;
}

.os-card-footer {
    padding-top: 16px;
    border-top: 1px solid var(--os-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.os-card-footer > span {
    color: #858585;
    font-size: .72rem;
}

.os-card-footer a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #f1f1f1;
    font-size: .78rem;
    font-weight: 700;
    white-space: nowrap;
}

.os-card-footer a i {
    color: #aaa;
    font-size: .7rem;
    transition: transform .2s ease, color .2s ease;
}

.os-card-footer a:hover i {
    color: var(--os-red);
    transform: translate(2px, -2px);
}

/* Aviso de utilização */

.os-notice {
    margin-bottom: 100px;
    padding: 30px;
    display: grid;
    grid-template-columns: 58px 1fr;
    align-items: start;
    gap: 22px;
    border: 1px solid var(--os-border);
    background:
        radial-gradient(ellipse at top left, rgba(255, 255, 255, .055), transparent 60%),
        #0d0d0d;
}

.os-notice-icon {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .17);
    color: #f1f1f1;
    font-size: 1.25rem;
}

.os-notice h2 {
    margin: 11px 0;
    font-size: 1.45rem;
    letter-spacing: -.03em;
}

.os-notice p {
    max-width: 850px;
    margin: 0;
    color: var(--os-muted);
    font-size: .88rem;
    line-height: 1.85;
}

/* Animação de entrada */

.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .65s ease, transform .65s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes os-background-in {
    from {
        opacity: .15;
        transform: scale(1.07);
    }
    to {
        opacity: .48;
        transform: scale(1.02);
    }
}

/* Responsivo */

@media (max-width: 950px) {
    .os-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .os-intro {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .os-intro > p {
        max-width: 680px;
    }
}

@media (max-width: 600px) {
    .os-container {
        width: min(100% - 32px, 1200px);
    }

    .os-hero {
        min-height: 580px;
    }

    .os-hero-content {
        padding-top: 75px;
        padding-bottom: 95px;
    }

    .os-hero h1 {
        font-size: clamp(2.5rem, 12vw, 4rem);
    }

    .os-hero-content > p {
        font-size: .94rem;
    }

    .os-hero-meta {
        gap: 14px 20px;
        margin-top: 32px;
    }

    .os-intro {
        padding-top: 70px;
        padding-bottom: 48px;
    }

    .os-section-heading {
        align-items: start;
        flex-direction: column;
    }

    .os-grid {
        grid-template-columns: 1fr;
    }

    .os-card {
        padding: 21px;
    }

    .os-logo {
        height: 88px;
        margin-block: 12px 16px;
    }

    .os-notice {
        grid-template-columns: 1fr;
        padding: 23px;
        margin-bottom: 65px;
    }

    .os-hero-index {
        right: 16px;
        bottom: 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .os-page *,
    .os-page *::before,
    .os-page *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}
