:root {
    --ink: #102d4c;
    --text: #2e465e;
    --muted: #52677c;
    --primary: #0c507f;
    --primary-hover: #093d62;
    --accent: #007d82;
    --turquoise: #72e0dd;
    --border: #d8e4ed;
    --surface: #f3f7fb;
    --white: #fff;
    --radius: 14px;
    --card-shadow: 0 3px 12px rgb(16 45 76 / 5%);
    color: var(--text);
    background: var(--surface);
    font: 1rem/1.55 "Segoe UI", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
body [hidden] { display: none; }
body, h1, h2, h3, p { margin: 0; }
h1, h2, h3 { color: var(--ink); line-height: 1.16; }
a { color: var(--primary); text-underline-offset: .2em; }
button, input, select { font: inherit; }
button, select { cursor: pointer; }
svg { width: 1.15em; height: 1.15em; flex: none; display: block; }

:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 3px;
}

.container {
    width: min(100% - 2rem, 75rem);
    margin-inline: auto;
}

.skip-link {
    position: absolute;
    z-index: 1;
    inset: .5rem auto auto .5rem;
    transform: translateY(calc(-100% - 1rem));
    padding: .65rem 1rem;
    border-radius: .5rem;
    background: var(--white);
}

.skip-link:focus { transform: none; }

.site-header {
    background: var(--white);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .125rem 1.5rem;
    padding-block: .45rem;
}

.brand, .header-nav, .header-nav a, .button {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.brand { gap: .6rem; color: var(--ink); }
.brand img, .footer-brand img { display: block; max-width: 100%; height: auto; }

.brand span {
    border-left: 1px solid var(--border);
    padding-left: .75rem;
    color: var(--primary);
    font-size: .925rem;
    font-weight: 650;
}

.header-nav {
    flex-wrap: wrap;
    gap: .25rem clamp(.6rem, 3vw, 1.6rem);
}

.header-nav a, .site-footer nav a {
    min-height: 2.5rem;
    color: var(--ink);
    font-size: .875rem;
    font-weight: 650;
}

.header-nav a:hover, .site-footer nav a:hover { text-decoration: underline; }

.header-nav .nav-support {
    gap: .45rem;
    padding-inline: .65rem;
    border-radius: .45rem;
    background: #e9f6f6;
    color: #095b60;
}

.hero {
    overflow: hidden;
    background:
        radial-gradient(ellipse at 75% 48%, #153c59 0%, transparent 50%),
        linear-gradient(115deg, #0b2239 15%, #102d4c 100%);
    color: #d1e0ed;
}

.hero-inner {
    display: grid;
    align-items: center;
    gap: 1.5rem;
    padding-block: 2.5rem 2rem;
}

.hero-copy { position: relative; }

.hero-kicker {
    display: flex;
    align-items: center;
    gap: .6rem;
    margin-bottom: .85rem;
    color: var(--turquoise);
    font-size: .875rem;
    font-weight: 700;
    letter-spacing: .095em;
    text-transform: uppercase;
}

.hero-kicker::before {
    width: 1.3rem;
    height: 2px;
    background: currentColor;
    content: "";
}

.hero h1 {
    color: #f4faff;
    font-size: clamp(2.55rem, 5.4vw, 4.65rem);
    font-weight: 750;
    line-height: 1.02;
    letter-spacing: -.048em;
}

.hero h1 span { display: block; color: var(--turquoise); }

.hero-description {
    max-width: 34rem;
    margin-top: 1.05rem;
    font-size: clamp(1rem, 1.4vw, 1.125rem);
    line-height: 1.6;
}

.button {
    justify-content: center;
    gap: .55rem;
    min-height: 2.75rem;
    padding: .5rem .9rem;
    border: 1px solid transparent;
    border-radius: .55rem;
    font-size: .9rem;
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
}

.hero-button {
    margin-top: 1.35rem;
    padding-inline: 1.05rem;
    background: var(--turquoise);
    color: #0b2e42;
}

.hero-button:hover { background: #a0f3ef; }
.hero :focus-visible { outline-color: #fff; }

.hero-art {
    display: none;
    position: relative;
    isolation: isolate;
    width: 100%;
    min-width: 0;
    aspect-ratio: 1.55;
    place-items: center;
    background:
        radial-gradient(ellipse at center, #11b8c51c, transparent 65%),
        repeating-linear-gradient(0deg, transparent 0 29px, #83d6e512 29px 30px),
        repeating-linear-gradient(90deg, transparent 0 29px, #83d6e512 29px 30px);
    border: 1px solid #8dbdd22b;
    border-radius: 1.45rem;
}

.hero-art::before, .hero-art::after {
    position: absolute;
    inset: 9% auto 9% 50%;
    z-index: -1;
    border-left: 1px dashed #91e6e433;
    content: "";
}

.hero-art::after {
    inset: 50% 7% auto;
    border: 0;
    border-top: 1px dashed #91e6e433;
}

.art-orbit {
    position: absolute;
    z-index: -1;
    inset: 50% auto auto 50%;
    width: var(--orbit-width);
    aspect-ratio: 1;
    transform: translate(-50%, -50%);
    border: 1px solid #8cdedb42;
    border-radius: 50%;
}

.art-orbit-wide { --orbit-width: 55%; border-style: dashed; }
.art-orbit-middle { --orbit-width: 45%; }
.art-orbit-inner { --orbit-width: 36%; border-color: #8cdedb2a; }

.art-download {
    display: grid;
    width: 31%;
    aspect-ratio: 1;
    place-items: center;
    border: 1px solid #81e7df9c;
    border-radius: 24%;
    background: linear-gradient(145deg, #81e7df, #2ab6bc);
    box-shadow: 0 0 0 .5rem #7ce3df12, 0 18px 40px #051827a1, inset 0 1px 0 #fff8;
    color: #103954;
    transform: rotate(-8deg);
}

.art-download svg { width: 46%; height: 46%; transform: rotate(8deg); }

.art-tile {
    position: absolute;
    display: grid;
    width: 14%;
    aspect-ratio: 1;
    place-items: center;
    border: 1px solid #79cfd76b;
    border-radius: 25%;
    background: linear-gradient(150deg, #224e6c, #153851);
    color: #b3efee;
    box-shadow: 0 13px 25px #061b2e8c;
}

.art-tile svg { width: 41%; height: 41%; }
.art-tile-left { inset: auto auto 22% 16%; transform: rotate(10deg); }
.art-tile-right { inset: 19% 17% auto auto; transform: rotate(10deg); }

.art-node {
    position: absolute;
    width: .46rem;
    height: .46rem;
    border-radius: 50%;
    background: var(--turquoise);
    box-shadow: 0 0 .8rem #72e0dda6;
}

.art-node-top { inset: 23% auto auto 27%; }
.art-node-bottom { inset: auto 25% 25% auto; }

.trust-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .75rem;
    padding: .95rem 0 1.1rem;
    margin-block: 0;
    border-top: 1px solid #b2d6e53d;
    list-style: none;
}

.trust-list li {
    display: flex;
    align-items: center;
    gap: .55rem;
    font-size: .875rem;
    line-height: 1.35;
}

.trust-list svg { color: var(--turquoise); font-size: 1.08rem; }

.catalog { padding-block: 2.25rem 1.55rem; }

.section-heading {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: .5rem;
    margin-bottom: 1rem;
}

.section-heading h2 {
    font-size: clamp(1.75rem, 3vw, 2.35rem);
    letter-spacing: -.035em;
}

.result-status { color: var(--muted); font-size: .9rem; font-weight: 600; }

.filters {
    display: grid;
    gap: .75rem;
    padding: .85rem;
    margin-bottom: 1.55rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--card-shadow);
}

.field { min-width: 0; }
.field label { display: block; margin-bottom: .28rem; color: var(--ink); font-size: .875rem; font-weight: 650; }

.field input, .field select, .copy-dialog input {
    width: 100%;
    min-height: 2.75rem;
    padding: .45rem .72rem;
    border: 1px solid #b9cad9;
    border-radius: .5rem;
    background-color: var(--white);
    color: var(--ink);
}

.field input::placeholder { color: var(--muted); opacity: 1; }
.search-field { position: relative; }
.search-field svg { position: absolute; top: .83rem; left: .8rem; color: var(--muted); pointer-events: none; }
.search-field input { padding-left: 2.4rem; }

.field select {
    appearance: none;
    padding-right: 2rem;
    background-image: linear-gradient(45deg, transparent 50%, var(--primary) 50%),
        linear-gradient(135deg, var(--primary) 50%, transparent 50%);
    background-position: right 1rem center, right .7rem center;
    background-repeat: no-repeat;
    background-size: .3rem .3rem;
}

.catalog-group + .catalog-group { margin-top: 1.65rem; }

.group-heading {
    display: flex;
    align-items: center;
    gap: .65rem;
    margin-bottom: .75rem;
}

.group-heading h3 { font-size: 1.2rem; letter-spacing: -.02em; }
.group-heading svg { color: var(--accent); }

.group-heading::after {
    flex: 1;
    min-width: .75rem;
    border-top: 1px solid var(--border);
    content: "";
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 15.7rem), 1fr));
    gap: .85rem;
}

.product-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--card-shadow);
    overflow-wrap: anywhere;
}

.product-card:focus-within { border-color: #86b6bf; }

.card-icon, .support-icon {
    display: grid;
    width: 2.55rem;
    height: 2.55rem;
    place-items: center;
    border: 1px solid #d1e7ee;
    border-radius: .67rem;
    background: #e9f5fa;
    color: var(--primary);
}

[data-category="integration"] .card-icon {
    border-color: #ceebea;
    background: #e7f6f5;
    color: #08696f;
}

[data-category="production"] .card-icon {
    border-color: #d8e1ef;
    background: #edf2fa;
    color: #304e81;
}

[data-category="technical"] .card-icon {
    border-color: #d9e3eb;
    background: #edf2f6;
    color: #365673;
}

.product-card h4 {
    margin: .7rem 0 .4rem;
    color: var(--ink);
    font-size: 1.04rem;
    line-height: 1.25;
    letter-spacing: -.015em;
}

.description { margin-bottom: .65rem; color: var(--muted); font-size: .925rem; line-height: 1.45; }

.platforms {
    display: flex;
    flex-wrap: wrap;
    gap: .3rem;
    margin: 0 0 .65rem;
    padding: 0;
    list-style: none;
}

.platforms li {
    padding: .14rem .52rem;
    border: 1px solid #dce8f1;
    border-radius: 1rem;
    background: #f2f7fb;
    color: #365674;
    font-size: .8125rem;
    font-weight: 650;
}

.card-footer { margin-top: auto; }

.availability {
    padding-top: .6rem;
    border-top: 1px solid #e4ebf1;
    color: var(--muted);
    font-size: .875rem;
    line-height: 1.4;
}

.card-link {
    display: inline-flex;
    align-items: center;
    min-height: 2.5rem;
    color: var(--primary);
    font-size: .875rem;
    font-weight: 700;
}

.release-list {
    margin: .5rem 0;
    border-top: 1px solid var(--border);
}

.release-list summary {
    padding-block: .6rem;
    color: var(--primary);
    font-size: .9rem;
    font-weight: 700;
    cursor: pointer;
}

.release-files { display: grid; gap: .5rem; margin: 0; padding: 0; list-style: none; }

.release {
    display: grid;
    gap: .45rem;
    padding: .65rem;
    border: 1px solid var(--border);
    border-radius: .55rem;
    background: var(--surface);
}

.file-name { color: var(--ink); font-size: .9rem; }
.file-meta, .file-signature, .file-checksum { color: var(--muted); font-size: .875rem; }
.file-checksum code { display: block; overflow-wrap: anywhere; }
.file-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; }
.file-actions .button { flex: 1 1 auto; }

.button-primary { background: var(--primary); color: var(--white); }
.button-primary:hover { background: var(--primary-hover); }
.button-outline { border-color: #b7cedc; background: var(--white); color: var(--primary); }
.button-outline:hover { background: #e9f5fa; }

.message {
    padding: .9rem 1rem;
    margin-bottom: 1rem;
    border: 1px solid #b7d5da;
    border-radius: var(--radius);
    background: #ecf8f9;
    color: #25485b;
}

.empty-state { padding: 1.25rem; }
.empty-state p { margin: .5rem 0 .8rem; }
.support { padding-block: .8rem 2.5rem; }

.support-card {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .9rem;
    padding: 1.25rem;
    border: 1px solid #c8dfe6;
    border-radius: var(--radius);
    background: #eaf5f7;
}

.support-icon { background: var(--white); color: var(--accent); }
.support-copy { flex: 1 1 16rem; }
.support-copy h2 { font-size: 1.25rem; margin-bottom: .25rem; }
.support-actions { display: flex; flex-wrap: wrap; gap: .45rem; }
.site-footer { border-top: 1px solid var(--border); background: var(--white); }

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .7rem 1.5rem;
    padding-block: .9rem;
}

.footer-brand { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .65rem; }
.footer-brand p { color: var(--muted); font-size: .875rem; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: .1rem .85rem; }
.site-footer nav a { display: inline-flex; align-items: center; }

.copy-status {
    position: fixed;
    z-index: 1;
    inset: auto .75rem .75rem auto;
    max-width: calc(100% - 1.5rem);
}

.copy-status:not(:empty) {
    padding: .65rem .9rem;
    border-radius: .55rem;
    background: var(--ink);
    color: var(--white);
    box-shadow: var(--card-shadow);
}

.copy-dialog {
    width: min(calc(100% - 2rem), 29rem);
    padding: 1.25rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--ink);
}

.copy-dialog::backdrop { background: rgb(11 34 57 / 57%); }
.copy-dialog form { display: grid; justify-items: start; gap: .75rem; }
.copy-dialog h2 { font-size: 1.3rem; }

@media (min-width: 39rem) {
    .container { width: min(100% - 3rem, 75rem); }
    .filters { grid-template-columns: minmax(0, 1.5fr) repeat(2, minmax(0, 1fr)); }
    .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .trust-list { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
}

@media (min-width: 23rem) and (max-width: 38.99rem) {
    .filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .filters .field:first-child { grid-column: 1 / -1; }
}

@media (min-width: 48rem) {
    .header-inner { min-height: 4.65rem; }
    .brand { gap: .9rem; }
    .brand span { padding-left: .9rem; }
    .header-nav .nav-support { padding-inline: .85rem; }
    .hero-inner { grid-template-columns: 1.16fr 1fr; padding-block: 3.15rem; gap: 2rem; }
    .hero-art { display: grid; }
    .hero-description { margin-top: 1.15rem; }
    .hero-button { margin-top: 1.55rem; }
    .trust-list { padding-block: 1.15rem; }
    .catalog { padding-top: 2.65rem; }
    .filters { padding: 1rem; gap: 1rem; }
    .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 67rem) {
    .hero-inner { grid-template-columns: 1.15fr 1fr; gap: 3.4rem; }
    .hero-art { max-width: 32rem; justify-self: end; }
    .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .product-card { padding: 1.1rem; }
}

@media (prefers-reduced-motion: no-preference) {
    .button { transition: background-color 140ms ease; }
}
