
/* ==========================================================
   KATYUSHA-SECURITY
   Minimal Cybersecurity Design
   Palette: Black / White / Graphite / Gray
   ========================================================== */

:root {
    --black: #080808;
    --black-soft: #0d0d0d;
    --surface: #111111;
    --surface-hover: #171717;
    --white: #f5f5f5;
    --gray-100: #e7e7e7;
    --gray-300: #b5b5b5;
    --gray-500: #888888;
    --gray-700: #454545;
    --border: rgba(255, 255, 255, .10);
    --border-hover: rgba(255, 255, 255, .28);
    --red: #e33b43;
    --container: 1200px;
    --radius: 12px;
    --transition: .25s ease;
    --shadow: 0 16px 50px rgba(0, 0, 0, .25);
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    background: var(--black);
    color: var(--white);
    font-family: "Inter", sans-serif;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

body.menu-open {
    overflow: hidden;
}

img {
    display: block;
    max-width: 100%;
}

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

button {
    font: inherit;
}

button, a {
    -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible {
    outline: 2px solid var(--white);
    outline-offset: 4px;
}

::selection {
    color: var(--black);
    background: var(--white);
}

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

.section {
    padding: 100px 0;
}

section[id] {
    scroll-margin-top: 90px;
}

/* HEADER */

.header {
    height: 78px;
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(8, 8, 8, .94);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(18px);
    transition: box-shadow var(--transition);
}

.header.scrolled {
    box-shadow: 0 8px 30px rgba(0, 0, 0, .35);
}

.header-inner {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.brand-logo {
    width: 43px;
    height: 43px;
    object-fit: contain;
}

.brand-name {
    font-size: .98rem;
    font-weight: 800;
    letter-spacing: 1.2px;
    white-space: nowrap;
}

.brand-name span {
    color: var(--gray-500);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 25px;
}

.header-status {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: .67rem;
    color: var(--gray-300);
    font-weight: 700;
    letter-spacing: 1.5px;
}

.status-dot {
    width: 7px;
    height: 7px;
    background: #a9a9a9;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(255, 255, 255, .2);
}

.nav-toggle {
    width: 44px;
    height: 44px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: transparent;
    cursor: pointer;
    transition: border-color var(--transition), background var(--transition);
}

.nav-toggle:hover {
    background: var(--surface);
    border-color: var(--border-hover);
}

.nav-toggle span {
    width: 19px;
    height: 1.5px;
    background: var(--white);
    transition: transform var(--transition);
}

.nav-toggle span:last-child {
    width: 13px;
    margin-left: 6px;
}

.nav-toggle[aria-expanded="true"] span:first-child {
    transform: translateY(4.25px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:last-child {
    width: 19px;
    margin-left: 0;
    transform: translateY(-4.25px) rotate(-45deg);
}

/* SIDE MENU */

.nav-overlay {
    position: fixed;
    inset: 0;
    z-index: 190;
    background: rgba(0, 0, 0, .76);
    backdrop-filter: blur(5px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s ease, visibility .3s ease;
}

.nav-overlay.show {
    opacity: 1;
    visibility: visible;
}

.nav {
    position: fixed;
    z-index: 200;
    top: 0;
    right: 0;
    width: min(410px, 92vw);
    height: 100vh;
    height: 100dvh;
    overflow-y: auto;
    background: #0c0c0c;
    border-left: 1px solid var(--border);
    padding: 27px 30px 24px;
    display: flex;
    flex-direction: column;
    transform: translateX(105%);
    visibility: hidden;
    transition: transform .35s cubic-bezier(.2, .8, .2, 1), visibility .35s;
}

.nav.open {
    transform: translateX(0);
    visibility: visible;
}

.nav-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--border);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.nav-brand img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.nav-brand strong,
.nav-brand span {
    display: block;
}

.nav-brand strong {
    font-size: .76rem;
    letter-spacing: .6px;
}

.nav-brand span {
    font-size: .68rem;
    color: var(--gray-500);
    margin-top: 3px;
}

.nav-close {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    color: var(--white);
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 7px;
    cursor: pointer;
}

.nav-close:hover {
    background: var(--surface-hover);
}

.nav-caption {
    margin: 27px 0 13px;
    font-size: .65rem;
    letter-spacing: 2px;
    color: var(--gray-500);
    font-weight: 700;
}

.nav-link {
    min-height: 53px;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 13px;
    border-bottom: 1px solid rgba(255, 255, 255, .055);
    border-radius: 6px;
    font-size: .88rem;
    color: var(--gray-300);
    transition: color var(--transition), background var(--transition), padding var(--transition);
}

.nav-link > i:first-child {
    width: 19px;
    color: var(--gray-500);
    text-align: center;
}

.nav-link:hover {
    background: var(--surface-hover);
    color: var(--white);
    padding-left: 18px;
}

.nav-link:hover > i:first-child {
    color: var(--white);
}

.nav-arrow {
    margin-left: auto;
    font-size: .7rem;
    opacity: 0;
    transform: translateX(-4px);
    transition: all var(--transition);
}

.nav-link:hover .nav-arrow {
    opacity: 1;
    transform: translateX(0);
}

.nav-bottom {
    margin-top: auto;
    padding-top: 32px;
}

.nav-bottom-mark {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -2px;
}

.nav-bottom p {
    font-size: .74rem;
    color: var(--gray-500);
}

.nav-version {
    display: block;
    margin-top: 22px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
    font-size: .65rem;
    color: var(--gray-500);
    letter-spacing: .8px;
}

/* HERO */

.hero {
    min-height: 690px;
    min-height: min(780px, calc(100svh - 78px));
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: #090909;
    border-bottom: 1px solid var(--border);
}

.hero-background {
    position: absolute;
    inset: 0;
    background-image: url("../img/ciber-card.png");
    background-size: cover;
    background-position: center 42%;
    opacity: .48;
    transform: scale(1.015);
    animation: hero-image-in 1.4s ease both;
}

.hero-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, #080808 0%, rgba(8, 8, 8, .94) 26%, rgba(8, 8, 8, .62) 67%, rgba(8, 8, 8, .45) 100%),
        linear-gradient(0deg, #080808 0%, transparent 32%, rgba(0, 0, 0, .12) 100%);
}

.hero-grid {
    position: absolute;
    inset: 0;
    opacity: .12;
    background-image:
        linear-gradient(rgba(255, 255, 255, .10) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .10) 1px, transparent 1px);
    background-size: 70px 70px;
    mask-image: linear-gradient(90deg, black, transparent 90%);
    pointer-events: none;
}

.hero-inner {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding-top: 70px;
    padding-bottom: 100px;
}

.hero-content {
    max-width: 760px;
}

.eyebrow,
.section-kicker {
    display: flex;
    align-items: center;
    gap: 11px;
    font-size: .69rem;
    color: var(--gray-300);
    font-weight: 700;
    letter-spacing: 2.2px;
}

.eyebrow {
    margin-bottom: 26px;
}

.eyebrow-line {
    width: 27px;
    height: 1px;
    background: var(--white);
}

.hero h1 {
    font-size: clamp(2.9rem, 6.5vw, 5.6rem);
    line-height: 1.04;
    letter-spacing: -.065em;
    font-weight: 800;
    margin-bottom: 26px;
}

.hero h1 span,
.section-heading h2 span,
.knowledge-intro h2 span,
.platform-content h2 span,
.about-content h2 span,
.community-inner h2 span {
    color: var(--gray-500);
}

.hero-description {
    max-width: 590px;
    color: #b3b3b3;
    font-size: 1rem;
    line-height: 1.9;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 13px;
    min-height: 48px;
    padding: 12px 19px;
    border-radius: 6px;
    font-size: .83rem;
    font-weight: 700;
    border: 1px solid transparent;
    transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
}

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

.btn-light {
    background: var(--white);
    color: var(--black);
}

.btn-light:hover {
    background: #d9d9d9;
}

.btn-light i {
    font-size: .78rem;
    transition: transform var(--transition);
}

.btn-light:hover i {
    transform: translateX(4px);
}

.btn-outline {
    color: var(--white);
    border-color: rgba(255, 255, 255, .27);
    background: rgba(255, 255, 255, .025);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, .09);
    border-color: rgba(255, 255, 255, .6);
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 23px;
    margin-top: 50px;
    color: var(--gray-300);
    font-size: .72rem;
}

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

.hero-meta i {
    color: var(--gray-500);
}

.hero-index {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
    align-self: flex-end;
    margin-bottom: 18px;
    color: rgba(255, 255, 255, .65);
}

.hero-index > span {
    font-size: 2.7rem;
    font-weight: 800;
    letter-spacing: -3px;
}

.hero-index div {
    width: 75px;
    height: 1px;
    background: rgba(255, 255, 255, .4);
}

.hero-index small {
    font-size: .58rem;
    letter-spacing: 1.5px;
    white-space: nowrap;
}

.scroll-indicator {
    position: absolute;
    z-index: 2;
    bottom: 26px;
    left: max(24px, calc((100% - var(--container)) / 2));
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--gray-500);
    font-size: .63rem;
    letter-spacing: 1.7px;
}

.scroll-indicator i {
    color: var(--white);
    animation: scroll-bounce 1.7s ease-in-out infinite;
}

/* SHARED SECTION HEADINGS */

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

.section-kicker {
    margin-bottom: 15px;
    font-size: .64rem;
}

.section-heading h2,
.knowledge-intro h2,
.platform-content h2,
.about-content h2,
.community-inner h2 {
    font-size: clamp(1.9rem, 3.5vw, 3rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -.045em;
}

.section-heading > p {
    max-width: 410px;
    color: var(--gray-500);
    font-size: .88rem;
    line-height: 1.9;
}

/* TOOL CARDS */

.tools-section {
    background: #0b0b0b;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 15px;
}

.tool-card {
    min-width: 0;
    min-height: 305px;
    display: flex;
    flex-direction: column;
    padding: 20px;
    background: linear-gradient(145deg, #131313, #0e0e0e);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    transition: transform .3s ease, border-color .3s ease, background .3s ease;
}

.tool-card::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    height: 2px;
    width: 0;
    background: var(--gray-300);
    transition: width .35s ease;
}

.tool-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-hover);
    background: linear-gradient(145deg, #181818, #101010);
}

.tool-card:hover::after {
    width: 100%;
}

.tool-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--gray-500);
    font-size: .7rem;
}

.tool-card-top > i {
    font-size: .75rem;
    opacity: .6;
    transition: transform var(--transition), opacity var(--transition);
}

.tool-card:hover .tool-card-top > i {
    opacity: 1;
    transform: translate(2px, -2px);
}

.tool-image {
    height: 100px;
    margin: 19px 0 17px;
    display: grid;
    place-items: center;
}

.tool-image img {
    width: 78px;
    height: 78px;
    object-fit: contain;
    transition: transform .35s ease, filter .35s ease;
}

.tool-card:hover .tool-image img {
    transform: scale(1.08);
}

.tool-card h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 7px;
}

.tool-card > p {
    color: var(--gray-500);
    font-size: .78rem;
    line-height: 1.8;
    flex: 1;
}

.tool-category {
    display: block;
    margin-top: 20px;
    padding-top: 13px;
    border-top: 1px solid var(--border);
    color: var(--gray-500);
    font-size: .57rem;
    font-weight: 700;
    letter-spacing: 1.2px;
}

.section-action {
    display: flex;
    justify-content: flex-end;
    margin-top: 30px;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: .83rem;
    font-weight: 700;
    transition: gap var(--transition);
}

.text-link:hover {
    gap: 18px;
}

/* OPERATING SYSTEMS */

.systems-section {
    background: var(--black);
}

.systems-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
}

.system-card {
    position: relative;
    min-height: 190px;
    display: flex;
    align-items: center;
    gap: 23px;
    padding: 27px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    overflow: hidden;
    transition: background var(--transition), border-color var(--transition), transform var(--transition);
}

.system-card:hover {
    background: var(--surface-hover);
    border-color: var(--border-hover);
    transform: translateY(-3px);
}

.system-logo {
    width: 84px;
    height: 84px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    background: #f1f1f1;
    border-radius: 12px;
    padding: 13px;
}

.system-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.system-card > div:last-of-type {
    position: relative;
    z-index: 1;
}

.system-type {
    display: block;
    margin-bottom: 8px;
    font-size: .58rem;
    font-weight: 700;
    letter-spacing: 1.4px;
    color: var(--gray-500);
}

.system-card h3 {
    font-size: 1.1rem;
    margin-bottom: 6px;
}

.system-card p {
    max-width: 340px;
    font-size: .78rem;
    color: var(--gray-500);
    line-height: 1.8;
}

.system-number {
    position: absolute;
    right: 18px;
    bottom: 10px;
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
    color: rgba(255, 255, 255, .035);
    pointer-events: none;
}

/* KNOWLEDGE */

.knowledge-section {
    background: #101010;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.knowledge-layout {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: 90px;
    align-items: start;
}

.knowledge-intro {
    position: sticky;
    top: 120px;
}

.knowledge-intro h2 {
    margin-bottom: 20px;
}

.knowledge-intro > p {
    color: var(--gray-500);
    font-size: .88rem;
    line-height: 1.95;
    margin-bottom: 27px;
}

.knowledge-list {
    border-top: 1px solid var(--border);
}

.knowledge-item {
    display: grid;
    grid-template-columns: 46px 1fr 25px;
    gap: 17px;
    align-items: start;
    padding: 25px 0;
    border-bottom: 1px solid var(--border);
    transition: padding var(--transition);
}

.knowledge-item:hover {
    padding-left: 7px;
}

.knowledge-icon {
    width: 43px;
    height: 43px;
    display: grid;
    place-items: center;
    border: 1px solid var(--border);
    border-radius: 9px;
    color: var(--gray-300);
    font-size: 1rem;
}

.knowledge-item h3 {
    font-size: .96rem;
    margin-bottom: 6px;
}

.knowledge-item p {
    font-size: .8rem;
    color: var(--gray-500);
    line-height: 1.8;
}

.knowledge-index {
    font-size: .67rem;
    color: var(--gray-500);
    text-align: right;
}

/* PLATFORM PANEL */

.platform-section {
    padding-top: 85px;
    padding-bottom: 85px;
}

.platform-panel {
    min-height: 340px;
    display: flex;
    align-items: center;
    padding: 55px;
    border: 1px solid var(--border);
    border-radius: 15px;
    background:
        radial-gradient(ellipse at 90% 10%, rgba(255, 255, 255, .065), transparent 38%),
        linear-gradient(125deg, #151515, #0c0c0c 65%);
    position: relative;
    overflow: hidden;
}

.platform-content {
    max-width: 690px;
    position: relative;
    z-index: 1;
}

.platform-content h2 {
    margin-bottom: 17px;
}

.platform-content > p {
    max-width: 590px;
    color: var(--gray-500);
    font-size: .88rem;
    line-height: 1.9;
}

.platform-watermark {
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, .035);
    font-size: clamp(8rem, 20vw, 17rem);
    font-weight: 800;
    letter-spacing: -.1em;
    line-height: 1;
    pointer-events: none;
}

.platform-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 29px;
}

.platform-links a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 11px 14px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: .76rem;
    color: var(--gray-300);
    transition: all var(--transition);
}

.platform-links a:hover {
    color: var(--white);
    background: rgba(255, 255, 255, .06);
    border-color: var(--border-hover);
}

.platform-links i {
    color: var(--gray-500);
}

/* ABOUT */

.about-section {
    background: #0b0b0b;
    border-top: 1px solid var(--border);
}

.about-layout {
    display: grid;
    grid-template-columns: .65fr 1.35fr;
    gap: 90px;
    align-items: center;
}

.about-mark {
    min-height: 290px;
    display: grid;
    place-items: center;
    border: 1px solid var(--border);
    border-radius: 15px;
    background:
        radial-gradient(circle, rgba(255, 255, 255, .06), transparent 65%),
        #0f0f0f;
}

.about-mark img {
    width: min(190px, 65%);
    aspect-ratio: 1;
    object-fit: contain;
    filter: grayscale(1);
    transition: transform .4s ease;
}

.about-mark:hover img {
    transform: scale(1.05);
}

.about-content h2 {
    margin-bottom: 20px;
}

.about-content > p {
    color: var(--gray-500);
    font-size: .87rem;
    line-height: 1.95;
    margin-bottom: 13px;
}

.about-principles {
    display: flex;
    flex-wrap: wrap;
    gap: 13px 22px;
    margin-top: 25px;
}

.about-principles span {
    font-size: .75rem;
    color: var(--gray-300);
}

.about-principles i {
    margin-right: 7px;
    font-size: .7rem;
    color: var(--white);
}

/* COMMUNITY */

.community-section {
    padding-top: 75px;
    padding-bottom: 75px;
    background: #111;
    border-top: 1px solid var(--border);
}

.community-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.community-inner h2 {
    margin-bottom: 17px;
}

.community-inner p {
    max-width: 600px;
    font-size: .87rem;
    color: var(--gray-500);
    line-height: 1.9;
}

/* LOGIN PLACEHOLDER */

.login-anchor {
    padding: 24px;
    text-align: center;
    background: #090909;
    border-top: 1px solid var(--border);
}

.login-anchor span {
    font-size: .64rem;
    letter-spacing: 1.8px;
    font-weight: 700;
}

.login-anchor p {
    color: var(--gray-500);
    font-size: .75rem;
    margin-top: 5px;
}

/* FOOTER */

.footer {
    background: #070707;
    border-top: 1px solid var(--border);
}

.footer-main {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr;
    gap: 75px;
    padding-top: 65px;
    padding-bottom: 60px;
}

.footer-brand {
    margin-bottom: 19px;
}

.footer-brand img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.footer-brand .brand-name {
    font-size: .82rem;
}

.footer-brand-block > p {
    max-width: 360px;
    color: var(--gray-500);
    font-size: .8rem;
    line-height: 1.9;
}

.footer-column {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}

.footer-column h3 {
    margin-bottom: 6px;
    font-size: .79rem;
    letter-spacing: .5px;
}

.footer-column a {
    color: var(--gray-500);
    font-size: .78rem;
    transition: color var(--transition), transform var(--transition);
}

.footer-column a:hover {
    color: var(--white);
    transform: translateX(3px);
}

.footer-bottom {
    border-top: 1px solid var(--border);
}

.footer-bottom-inner {
    min-height: 65px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    color: var(--gray-500);
    font-size: .69rem;
}

/* REVEAL ANIMATIONS */

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

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

.tools-grid .tool-card:nth-child(2),
.systems-grid .system-card:nth-child(2) {
    transition-delay: .07s;
}

.tools-grid .tool-card:nth-child(3),
.systems-grid .system-card:nth-child(3) {
    transition-delay: .14s;
}

.tools-grid .tool-card:nth-child(4),
.systems-grid .system-card:nth-child(4) {
    transition-delay: .21s;
}

.tools-grid .tool-card:nth-child(5) {
    transition-delay: .07s;
}

.tools-grid .tool-card:nth-child(6) {
    transition-delay: .14s;
}

.tools-grid .tool-card:nth-child(7) {
    transition-delay: .21s;
}

.tools-grid .tool-card:nth-child(8) {
    transition-delay: .28s;
}

@keyframes scroll-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(5px); }
}

@keyframes hero-image-in {
    from { opacity: 0; transform: scale(1.04); }
    to { opacity: .48; transform: scale(1.015); }
}

/* RESPONSIVE */

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

    .tool-card {
        min-height: 285px;
    }

    .knowledge-layout,
    .about-layout {
        gap: 45px;
    }

    .footer-main {
        gap: 40px;
    }
}

@media (max-width: 760px) {
    .container {
        width: calc(100% - 36px);
    }

    .section {
        padding: 72px 0;
    }

    .header {
        height: 70px;
    }

    .brand-logo {
        width: 37px;
        height: 37px;
    }

    .brand-name {
        font-size: .79rem;
        letter-spacing: .6px;
    }

    .header-status {
        display: none;
    }

    .hero {
        min-height: 690px;
        min-height: calc(88svh - 70px);
    }

    .hero-inner {
        padding-top: 80px;
        padding-bottom: 105px;
    }

    .hero h1 {
        font-size: clamp(2.8rem, 11vw, 4.5rem);
    }

    .hero-description {
        font-size: .9rem;
    }

    .hero-index {
        display: none;
    }

    .hero-meta {
        gap: 13px 18px;
        margin-top: 35px;
    }

    .hero-meta span {
        font-size: .66rem;
    }

    .section-heading {
        display: block;
        margin-bottom: 30px;
    }

    .section-heading > p {
        margin-top: 17px;
    }

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

    .knowledge-layout,
    .about-layout {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .knowledge-intro {
        position: static;
    }

    .about-mark {
        min-height: 230px;
    }

    .about-mark img {
        width: 145px;
    }

    .platform-panel {
        padding: 35px 25px;
    }

    .community-inner {
        align-items: flex-start;
        flex-direction: column;
        gap: 25px;
    }

    .footer-main {
        grid-template-columns: 1fr 1fr;
        gap: 35px 25px;
        padding-top: 48px;
        padding-bottom: 45px;
    }

    .footer-brand-block {
        grid-column: 1 / -1;
    }

    .footer-bottom-inner {
        align-items: flex-start;
        flex-direction: column;
        justify-content: center;
        padding-top: 18px;
        padding-bottom: 18px;
        gap: 5px;
    }
}

@media (max-width: 440px) {
    .container {
        width: calc(100% - 30px);
    }

    .brand {
        gap: 8px;
    }

    .brand-name {
        font-size: .72rem;
    }

    .nav-toggle {
        width: 41px;
        height: 41px;
    }

    .hero h1 {
        font-size: 2.65rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .hero-meta {
        flex-direction: column;
        gap: 10px;
    }

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

    .tool-card {
        min-height: 275px;
    }

    .system-card {
        padding: 19px;
        gap: 15px;
    }

    .system-logo {
        width: 65px;
        height: 65px;
        padding: 10px;
    }

    .system-card h3 {
        font-size: .95rem;
    }

    .system-card p {
        font-size: .73rem;
    }

    .platform-panel {
        padding: 30px 20px;
    }

    .platform-links {
        align-items: stretch;
        flex-direction: column;
    }

    .platform-links a {
        justify-content: flex-start;
    }

    .footer-main {
        gap: 30px 20px;
    }
}

/* RESPEITAR PREFERÊNCIA POR MOVIMENTO REDUZIDO */

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

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