
:root {
    --bg: #05070b;
    --panel: #0b1018;
    --panel-2: #101722;
    --border: rgba(255,255,255,.08);
    --text: #f5f7fb;
    --muted: #8994a5;
    --accent: #54e6a6;
    --accent-dark: #20b879;
}

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

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    overflow-x: hidden;
    color: var(--text);
    background: var(--bg);
    font-family: Inter, sans-serif;
}

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

button,
input {
    font: inherit;
}

button {
    cursor: pointer;
}

.container {
    width: min(1180px, calc(100% - 40px));
    margin: auto;
}

.page-grid {
    position: fixed;
    inset: 0;
    z-index: -2;
    opacity: .22;
    background-image:
        linear-gradient(
            rgba(255,255,255,.025) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255,255,255,.025) 1px,
            transparent 1px
        );
    background-size: 50px 50px;
}


/* HEADER */

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    border-bottom: 1px solid var(--border);
    background: rgba(5,7,11,.78);
    backdrop-filter: blur(18px);
}

.nav {
    min-height: 76px;
    display: flex;
    align-items: center;
}

.brand {
    display: flex;
    align-items: center;
    gap: 11px;
}

.brand-mark {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    border-radius: 12px;
    color: #04110b;
    background: var(--accent);
    font-size: 21px;
    font-weight: 800;
    box-shadow:
        0 0 30px rgba(84,230,166,.18);
}

.brand-name strong,
.brand-name small {
    display: block;
}

.brand-name strong {
    font-size: 15px;
    letter-spacing: .08em;
}

.brand-name small {
    margin-top: 2px;
    color: var(--muted);
    font-size: 8px;
    letter-spacing: .18em;
}

.nav-links {
    display: flex;
    gap: 30px;
    margin-left: auto;
    margin-right: 25px;
}

.nav-links a {
    position: relative;
    color: #9ca6b5;
    font-size: 12px;
    transition: .2s;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent);
}

.nav-links a.active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -10px;
    height: 2px;
    border-radius: 2px;
    background: var(--accent);
}

.company-button {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 9px;
    color: #dce3ec;
    font-size: 11px;
    transition: .2s;
}

.company-button:hover {
    border-color: rgba(84,230,166,.35);
}


/* HERO */

.hero {
    position: relative;
    min-height: 680px;
    display: flex;
    align-items: center;
    padding-top: 76px;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.hero-badge {
    width: fit-content;
    margin: 0 auto 23px;
    padding: 8px 13px;
    border: 1px solid rgba(84,230,166,.2);
    border-radius: 999px;
    color: #9aecc7;
    background: rgba(84,230,166,.05);
    font-size: 9px;
    font-weight: 600;
    letter-spacing: .15em;
}

.hero-badge span {
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-right: 7px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 12px var(--accent);
}

.hero h1 {
    max-width: 850px;
    margin: auto;
    font-size: clamp(48px, 7vw, 80px);
    line-height: .98;
    letter-spacing: -.055em;
}

.hero h1 strong {
    display: block;
    color: var(--accent);
    font-weight: 800;
}

.hero p {
    max-width: 650px;
    margin: 27px auto;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.primary-button,
.secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px 18px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 700;
    transition: .25s;
}

.primary-button {
    color: #03110a;
    background: var(--accent);
}

.primary-button:hover {
    transform: translateY(-2px);
    box-shadow:
        0 12px 35px rgba(84,230,166,.2);
}

.secondary-button {
    border: 1px solid var(--border);
    color: #d7dee8;
    background: rgba(255,255,255,.02);
}

.secondary-button:hover {
    border-color: rgba(255,255,255,.2);
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 70px;
    margin-top: 65px;
}

.hero-stats strong,
.hero-stats span {
    display: block;
}

.hero-stats strong {
    font-size: 22px;
}

.hero-stats span {
    margin-top: 5px;
    color: var(--muted);
    font-size: 9px;
}

.hero-glow {
    position: absolute;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    filter: blur(110px);
    opacity: .1;
}

.glow-left {
    left: -280px;
    top: 100px;
    background: var(--accent);
}

.glow-right {
    right: -280px;
    bottom: -150px;
    background: #3184ff;
}


/* DOWNLOADS */

.downloads-section {
    padding: 90px 0 110px;
}

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

.eyebrow {
    color: var(--accent);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .19em;
}

.section-header h2 {
    margin-top: 8px;
    font-size: 42px;
    letter-spacing: -.04em;
}

.section-header p {
    margin-top: 8px;
    color: var(--muted);
    font-size: 12px;
}

.search {
    width: 290px;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: rgba(255,255,255,.025);
}

.search span {
    color: var(--muted);
    font-size: 20px;
}

.search input {
    width: 100%;
    border: 0;
    outline: 0;
    color: white;
    background: transparent;
    font-size: 11px;
}

.search input::placeholder {
    color: #667181;
}

.toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}

.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.filter {
    padding: 8px 13px;
    border: 1px solid var(--border);
    border-radius: 999px;
    color: #8d98a8;
    background: transparent;
    font-size: 10px;
    transition: .2s;
}

.filter:hover,
.filter.active {
    color: #04110b;
    border-color: var(--accent);
    background: var(--accent);
}

.result-count {
    flex-shrink: 0;
    color: #687485;
    font-size: 10px;
}

.result-count span {
    color: var(--accent);
    font-weight: 700;
}


/* CARDS */

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

.download-card {
    position: relative;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    padding: 22px;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 18px;
    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,.045),
            rgba(255,255,255,.012)
        );
    transition: .3s ease;
}

.download-card:hover {
    transform: translateY(-5px);
    border-color: rgba(84,230,166,.28);
}

.download-card::after {
    content: "";
    position: absolute;
    width: 150px;
    height: 150px;
    right: -80px;
    top: -80px;
    border-radius: 50%;
    background: var(--accent);
    opacity: .025;
    filter: blur(20px);
}

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

.app-icon {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border-radius: 15px;
    font-size: 14px;
    font-weight: 800;
}

.icon-modbus {
    color: #63efae;
    background: #163d2f;
}

.icon-hmi {
    color: #69a9ff;
    background: #172c4a;
}

.icon-scada {
    color: #ffc366;
    background: #3c2c18;
}

.icon-rent {
    color: #d19cff;
    background: #38244b;
}

.icon-can {
    color: #d49aff;
    background: #30233d;
}

.icon-vfd {
    color: #ffab76;
    background: #3b2720;
}

.icon-plc {
    color: #75d7ff;
    background: #213947;
}

.icon-lab {
    color: #8ceba7;
    background: #223729;
}

.icon-device {
    color: #8ebaff;
    background: #202d43;
}

.icon-inventory {
    color: #ffd27c;
    background: #3c3020;
}

.status {
    padding: 6px 9px;
    border-radius: 999px;
    font-size: 8px;
    font-weight: 700;
}

.status.available {
    color: var(--accent);
    background: rgba(84,230,166,.08);
}

.status.soon {
    color: #929dac;
    background: rgba(255,255,255,.05);
}

.card-body {
    flex: 1;
    padding-top: 28px;
}

.card-category {
    color: #697587;
    font-size: 8px;
    letter-spacing: .14em;
}

.card-body h3 {
    margin-top: 9px;
    font-size: 21px;
    letter-spacing: -.025em;
}

.card-body p {
    margin-top: 9px;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.7;
}

.card-meta {
    display: flex;
    gap: 7px;
    margin-top: 17px;
}

.meta-item {
    padding: 6px 8px;
    border: 1px solid var(--border);
    border-radius: 6px;
    color: #8792a1;
    font-size: 8px;
}

.card-footer {
    display: flex;
    gap: 7px;
    margin-top: 20px;
}

.download-button,
.details-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 12px;
    border-radius: 8px;
    font-size: 9px;
    font-weight: 700;
}

.download-button {
    flex: 1;
    color: #04110b;
    background: var(--accent);
}

.download-button:hover {
    background: #70efb8;
}

.details-button {
    border: 1px solid var(--border);
    color: #b5bfcc;
    background: rgba(255,255,255,.025);
}

.details-button:hover {
    border-color: rgba(255,255,255,.2);
}

.download-button.disabled {
    color: #626d7d;
    background: rgba(255,255,255,.05);
    cursor: default;
}

.empty-state {
    display: none;
    padding: 80px 20px;
    text-align: center;
}

.empty-icon {
    color: #657182;
    font-size: 40px;
}

.empty-state h3 {
    margin-top: 12px;
    font-size: 18px;
}

.empty-state p {
    margin-top: 7px;
    color: var(--muted);
    font-size: 11px;
}


/* RELEASE */

.release-section {
    padding: 0 0 120px;
}

.release-card {
    min-height: 190px;
    display: flex;
    align-items: center;
    gap: 25px;
    padding: 35px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background:
        linear-gradient(
            135deg,
            #0c1714,
            #0b1018
        );
}

.release-icon {
    width: 65px;
    height: 65px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    border-radius: 18px;
    color: #04110b;
    background: var(--accent);
    font-size: 25px;
    font-weight: 800;
}

.release-card h2 {
    margin-top: 8px;
    font-size: 25px;
    letter-spacing: -.03em;
}

.release-card p {
    max-width: 600px;
    margin-top: 8px;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.7;
}

.release-card .primary-button {
    margin-left: auto;
    flex-shrink: 0;
}


/* FOOTER */

.footer {
    border-top: 1px solid var(--border);
    padding: 27px 0;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--muted);
    font-size: 10px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 9px;
}

.footer-brand .brand-mark {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    font-size: 16px;
}

.footer-brand strong,
.footer-brand small {
    display: block;
}

.footer-brand strong {
    color: white;
    font-size: 11px;
}

.footer-brand small {
    margin-top: 2px;
    font-size: 7px;
    letter-spacing: .1em;
}

.footer-inner > a:hover {
    color: var(--accent);
}


/* MODAL */

.modal {
    position: fixed;
    inset: 0;
    z-index: 300;
    display: none;
    place-items: center;
}

.modal.show {
    display: grid;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.78);
    backdrop-filter: blur(12px);
}

.modal-box {
    position: relative;
    width: min(500px, calc(100% - 30px));
    padding: 32px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: #0c121b;
    box-shadow: 0 30px 100px rgba(0,0,0,.6);
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 15px;
    border: 0;
    color: #8d98a7;
    background: transparent;
    font-size: 26px;
}

.modal-icon {
    width: 60px;
    height: 60px;
    display: grid;
    place-items: center;
    margin-bottom: 20px;
    border-radius: 15px;
    color: #04110b;
    background: var(--accent);
    font-size: 14px;
    font-weight: 800;
}

.modal-category {
    color: var(--accent);
    font-size: 8px;
    letter-spacing: .15em;
}

.modal-box h2 {
    margin-top: 8px;
    font-size: 28px;
}

.modal-box > p {
    margin: 10px 0 22px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.7;
}

.modal-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-bottom: 20px;
}

.modal-details div {
    padding: 11px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: rgba(255,255,255,.02);
}

.modal-details span,
.modal-details strong {
    display: block;
}

.modal-details span {
    color: #657182;
    font-size: 8px;
}

.modal-details strong {
    margin-top: 4px;
    color: #dce3eb;
    font-size: 10px;
}

.modal-download,
.modal-web {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px;
    border-radius: 9px;
    font-size: 10px;
    font-weight: 700;
}

.modal-download {
    color: #04110b;
    background: var(--accent);
}

.modal-web {
    margin-top: 8px;
    border: 1px solid var(--border);
    color: #b8c2cf;
}


/* RESPONSIVE */

@media (max-width: 950px) {

    .download-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .release-card {
        flex-wrap: wrap;
    }

    .release-card .primary-button {
        margin-left: 0;
    }
}

@media (max-width: 700px) {

    .container {
        width: min(100% - 28px, 1180px);
    }

    .nav {
        min-height: 68px;
    }

    .nav-links,
    .company-button {
        display: none;
    }

    .hero {
        min-height: 650px;
    }

    .hero h1 {
        font-size: 48px;
    }

    .hero p {
        font-size: 13px;
    }

    .hero-stats {
        gap: 30px;
    }

    .section-header {
        display: block;
    }

    .section-header h2 {
        font-size: 35px;
    }

    .search {
        width: 100%;
        margin-top: 20px;
    }

    .toolbar {
        display: block;
    }

    .result-count {
        margin-top: 12px;
    }

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

    .release-card {
        padding: 25px;
    }

    .release-icon {
        width: 55px;
        height: 55px;
    }

    .footer-inner {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

