/* =========================================
   SNOOSS Home Page
   Loaded after snooss-modern.css, home page only.
   All classes are prefixed with "hm-" to avoid clashing
   with the shorthand utility classes.
   ========================================= */

.hm {
    --hm-surface: rgba(30, 41, 59, 0.55);
    --hm-surface-hover: rgba(30, 41, 59, 0.85);
    --hm-line: rgba(148, 163, 184, 0.14);
    --hm-line-strong: rgba(96, 165, 250, 0.35);
    --hm-blue: #60a5fa;
    --hm-muted: #94a3b8;
    --hm-soft: #cbd5e1;
    color: var(--text-white);
}

.hm-container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 1.5rem;
    box-sizing: border-box;
}

/* ---------- Typography (overrides mobile !important rules in snooss-modern.css) ---------- */
.hm h1 {
    font-size: clamp(2.2rem, 6vw, 4.75rem) !important;
    line-height: 1.05 !important;
    font-weight: 800;
    letter-spacing: -0.035em;
    margin: 0 0 1.5rem;
}

.hm h2 {
    font-size: clamp(1.9rem, 3.6vw, 2.9rem) !important;
    line-height: 1.12 !important;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin: 0 0 1rem;
}

.hm h3 {
    font-size: 1.25rem !important;
    line-height: 1.3 !important;
    font-weight: 700;
    margin: 0 0 0.5rem;
    color: var(--text-white);
}

.hm p {
    margin: 0;
}

.hm-lead {
    font-size: clamp(1.05rem, 1.6vw, 1.25rem);
    line-height: 1.6;
    color: var(--hm-muted);
    font-weight: 300;
    max-width: 640px;
}

.hm-eyebrow {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--hm-blue);
    margin-bottom: 1rem;
}

.hm-center {
    text-align: center;
}

.hm-textlink {
    color: var(--hm-blue);
    font-weight: 600;
    text-decoration: none;
}

.hm-textlink:hover {
    text-decoration: underline;
}

/* ---------- Sections ---------- */
.hm-section {
    padding: 7rem 0;
    position: relative;
}

.hm-section-alt {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.6) 0%, #0f172a 100%);
    border-top: 1px solid var(--hm-line);
    border-bottom: 1px solid var(--hm-line);
}

.hm-heading {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 3.5rem;
}

.hm-heading .hm-lead {
    margin: 0 auto;
}

/* ---------- Hero ---------- */
.hm-hero {
    position: relative;
    padding: 6rem 0 7rem;
    text-align: center;
    overflow: hidden;
}

/* soft glow behind the headline */
.hm-hero::after {
    content: '';
    position: absolute;
    top: -30%;
    left: 50%;
    width: 900px;
    height: 600px;
    transform: translateX(-50%);
    background: radial-gradient(closest-side, rgba(59, 130, 246, 0.16), transparent);
    pointer-events: none;
}

.hm-hero-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hm-hero .hm-lead {
    margin: 0 auto;
}

.hm-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 2.5rem;
}

.hm-hero-note {
    margin-top: 2rem !important;
    font-size: 0.85rem;
    color: #64748b;
    letter-spacing: 0.02em;
}

/* ---------- Standards strip ---------- */
.hm-strip {
    border-top: 1px solid var(--hm-line);
    border-bottom: 1px solid var(--hm-line);
    background: rgba(15, 23, 42, 0.5);
    padding: 1.5rem 0;
}

.hm-strip-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1rem 2.5rem;
}

.hm-strip-label {
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #64748b;
}

.hm-standards {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem 2.5rem;
}

.hm-standards li {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--hm-soft);
    opacity: 0.85;
}

/* ---------- Grids & cards ---------- */
.hm-grid-3,
.hm-grid-2 {
    display: grid;
    gap: 1.5rem;
}

.hm-grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.hm-card {
    display: flex;
    flex-direction: column;
    padding: 2rem;
    border-radius: 20px;
    background: var(--hm-surface);
    border: 1px solid var(--hm-line);
    transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.hm-card p {
    color: var(--hm-muted);
    line-height: 1.6;
    font-size: 1rem;
    font-weight: 300;
}

.hm-card-link {
    color: inherit;
}

.hm-card-link:hover {
    border-color: var(--hm-line-strong);
    background: var(--hm-surface-hover);
    transform: translateY(-3px);
}

.hm-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--hm-blue);
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(59, 130, 246, 0.25);
}

.hm-icon svg {
    width: 22px;
    height: 22px;
}

.hm-more {
    margin-top: auto;
    padding-top: 1.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--hm-blue);
    font-weight: 600;
    font-size: 0.95rem;
}

.hm-more svg {
    width: 16px;
    height: 16px;
    transition: transform 0.2s ease;
}

.hm-card-link:hover .hm-more svg {
    transform: translateX(3px);
}

/* ---------- Check lists ---------- */
.hm-checks {
    list-style: none;
    padding: 0;
    margin: 2rem 0 0;
    display: grid;
    gap: 0.9rem;
}

.hm-checks li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    color: var(--hm-soft);
    font-size: 1.05rem;
    line-height: 1.5;
}

.hm-checks svg {
    flex: none;
    width: 20px;
    height: 20px;
    margin-top: 2px;
    padding: 3px;
    border-radius: 50%;
    color: #34d399;
    background: rgba(52, 211, 153, 0.12);
}

.hm-checks-sm {
    margin: 1.25rem 0 2rem;
    gap: 0.6rem;
}

.hm-checks-sm li {
    font-size: 0.98rem;
    color: var(--hm-muted);
}

/* ---------- Why SNOOSS: screenshot showcase ---------- */
.hm-showcase {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 2fr);
    gap: 2rem;
    align-items: center;
}

.hm-show-tabs {
    display: grid;
    gap: 0.6rem;
}

.hm-show-tab {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    width: 100%;
    padding: 0.9rem 1rem 1rem;
    border-radius: 16px;
    border: 1px solid var(--hm-line);
    background: transparent;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.hm-show-tab:hover {
    background: rgba(30, 41, 59, 0.5);
}

.hm-show-tab.is-active {
    border-color: var(--hm-line-strong);
    background: var(--hm-surface);
}

.hm-show-tab .hm-icon {
    flex: none;
    width: 40px;
    height: 40px;
    margin: 0;
    border-radius: 12px;
}

.hm-show-tab .hm-icon svg {
    width: 20px;
    height: 20px;
}

.hm-show-tab-text {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.hm-show-tab-text strong {
    font-size: 1.08rem;
    font-weight: 700;
    color: var(--hm-soft);
}

.hm-show-tab.is-active .hm-show-tab-text strong {
    color: var(--text-white);
}

.hm-show-tab-text span {
    font-size: 0.92rem;
    line-height: 1.5;
    font-weight: 300;
    color: var(--hm-muted);
}

/* inactive tabs: only the title, the description opens with the active one */
.hm-show-tab:not(.is-active) .hm-show-tab-text span {
    display: none;
}

/* rotating viewers: time per screen */
[data-rotate] {
    --hm-cycle: 8s;
}

/* Why SNOOSS: a ring runs around the active tab while the showcase rotates on its own */
.hm-show-tab .hm-show-progress {
    position: absolute;
    inset: -1px;
    pointer-events: none;
}

.hm-show-progress svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
    filter: drop-shadow(0 0 4px rgba(59, 130, 246, 0.55));
}

.hm-show-progress rect {
    fill: none;
    stroke: #3b82f6;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-dasharray: var(--len) var(--len);
    stroke-dashoffset: var(--len);
    opacity: 0;
}

.hm-showcase.is-playing .hm-show-tab.is-active .hm-show-progress rect,
.hm-ai-shots.is-playing .hm-show-tab.is-active .hm-show-progress rect {
    opacity: 1;
    animation: hm-ring var(--hm-cycle) linear forwards;
}

@keyframes hm-ring {
    to { stroke-dashoffset: 0; }
}

/* hovering, scrolling away or an open lightbox pauses the rotation */
[data-showcase].is-paused .hm-show-progress rect {
    animation-play-state: paused !important;
}

/* the browser-window frame around the screenshot */
.hm-show-window {
    border-radius: 14px;
    border: 1px solid var(--hm-line-strong);
    background: #0b1224;
    overflow: hidden;
    box-shadow: 0 40px 100px -30px rgba(59, 130, 246, 0.35);
}

.hm-show-bar {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.6rem 0.9rem;
    border-bottom: 1px solid var(--hm-line);
    background: rgba(30, 41, 59, 0.6);
}

.hm-show-dots {
    display: flex;
    gap: 6px;
}

.hm-show-dots i {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #475569;
}

.hm-show-url {
    flex: 1;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    max-width: 420px;
    padding: 0.3rem 0.75rem;
    border-radius: 8px;
    background: rgba(2, 6, 23, 0.6);
    font-size: 0.8rem;
    color: var(--hm-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hm-show-url svg {
    flex: none;
    width: 12px;
    height: 12px;
    color: #34d399;
}

/* screenshots are padded to 16:10 with the SNOOSS page colour */
.hm-show-screen {
    position: relative;
    aspect-ratio: 16 / 10;
    background: rgb(29, 32, 41);
}

.hm-show-panel {
    position: absolute;
    inset: 0;
    display: block;
}

.hm-show-panel[hidden] {
    display: none;
}

.hm-show-panel.is-active {
    z-index: 1;
    animation: hm-show-in 0.9s ease;
}

.hm-show-panel.is-leaving {
    z-index: 0;
}

@keyframes hm-show-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

.hm-show-panel img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.hm-show-zoom {
    position: absolute;
    right: 0.75rem;
    bottom: 0.75rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    font-size: 0.78rem;
    color: var(--text-white);
    background: rgba(2, 6, 23, 0.8);
    border: 1px solid var(--hm-line-strong);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.hm-show-zoom svg {
    width: 13px;
    height: 13px;
}

.hm-show-panel:hover .hm-show-zoom,
.hm-show-panel:focus-visible .hm-show-zoom {
    opacity: 1;
}

/* Why SNOOSS: the caption sits in the screenshot column, centred under the image */
.hm-showcase > .hm-show-note {
    grid-column: -2 / -1;
    margin-top: -1rem !important; /* the grid gap is 2rem */
}

.hm-show-note {
    margin-top: 1rem !important;
    text-align: center;
    font-size: 0.8rem;
    color: #64748b;
}

/* ---------- Lightbox for the screenshots ---------- */
.hm-no-scroll {
    overflow: hidden;
}

.hm-lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4vh 4vw;
    background: rgba(2, 6, 23, 0.88);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    cursor: zoom-out;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.hm-lightbox[hidden] {
    display: none;
}

.hm-lightbox.is-open {
    opacity: 1;
}

.hm-lightbox-img {
    max-width: 100%;
    max-height: 100%;
    border-radius: 10px;
    border: 1px solid var(--hm-line-strong);
    box-shadow: 0 30px 120px rgba(0, 0, 0, 0.6);
    cursor: default;
}

.hm-lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid var(--hm-line-strong);
    background: rgba(15, 23, 42, 0.9);
    color: #fff;
    cursor: pointer;
}

.hm-lightbox-close:hover {
    background: rgba(59, 130, 246, 0.35);
}

.hm-lightbox-close svg {
    width: 22px;
    height: 22px;
}

.hm-show-panel {
    cursor: zoom-in;
}

/* ---------- What is SNOOSS (hub diagram) ---------- */
.hm-arch {
    max-width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hm-arch-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #64748b;
    margin-bottom: 0.9rem;
}

/* sources: what feeds into SNOOSS */
.hm-arch-sources {
    text-align: center;
}

/* equal-width badges, joined by a bracket: a stub down from each badge centre and one bar */
.hm-arch-sources ul {
    --gap: 0.75rem;
    --stub: 14px;
    list-style: none;
    margin: 0 auto;
    padding: 0 0 var(--stub);
    display: inline-grid;
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    gap: var(--gap);
}

.hm-arch-sources li {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.55rem 1rem;
    border-radius: 999px;
    border: 1px solid var(--hm-line);
    background: var(--hm-surface);
    color: var(--hm-soft);
    font-size: 0.92rem;
}

.hm-arch-sources svg {
    flex-shrink: 0; /* a long label (e.g. "Webanwendungen" on phones) must not squeeze the icon */
    width: 16px;
    height: 16px;
    color: var(--hm-blue);
}

.hm-arch-sources li::after,
.hm-arch-sources li::before {
    content: '';
    position: absolute;
    background: var(--hm-line-strong);
}

/* stub from the badge centre */
.hm-arch-sources li::after {
    top: 100%;
    left: 50%;
    width: 2px;
    height: var(--stub);
    margin-left: -1px;
}

/* horizontal bar, from the first badge centre to the last badge centre */
.hm-arch-sources li::before {
    top: calc(100% + var(--stub) - 2px);
    left: calc(var(--gap) / -2 - 1px);
    right: calc(var(--gap) / -2 - 1px);
    height: 2px;
}

.hm-arch-sources li:first-child::before {
    left: 50%;
}

.hm-arch-sources li:last-child::before {
    right: 50%;
}

/* the line down from the bar starts solid so it visibly joins the bracket */
.hm-arch-sources + .hm-arch-flow {
    background: linear-gradient(180deg, var(--hm-line-strong), var(--hm-line-strong));
}

/* one-way connector (sources -> tools, platform -> servers) */
.hm-arch-flow {
    position: relative;
    width: 2px;
    height: 40px;
    background: linear-gradient(180deg, transparent, var(--hm-line-strong));
    overflow: hidden;
}

.hm-arch-flow::after {
    content: '';
    position: absolute;
    left: 0;
    width: 2px;
    height: 14px;
    border-radius: 2px;
    background: var(--hm-blue);
    animation: hm-flow-down 1.8s linear infinite;
}

/* wider container for the diagram only */
.hm-container-wide {
    max-width: 1440px;
}

/* main area: tool groups | hub | tool groups */
.hm-arch-main {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px minmax(0, 1fr);
    column-gap: 48px;
    align-items: stretch;
}

.hm-arch-side {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.hm-arch-group {
    position: relative;
    flex: 1 1 auto;
    padding: 0.85rem 0.75rem 0.6rem;
    border-radius: 16px;
    border: 1px dashed rgba(148, 163, 184, 0.28);
    background: rgba(2, 6, 23, 0.55);
}

.hm-arch-group h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 0.25rem 0.5rem;
    font-size: 0.78rem !important;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--hm-blue);
}

.hm-arch-group h3 svg {
    width: 16px;
    height: 16px;
}

/* tools two per row inside the side groups */
.hm-arch-side .hm-tools {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.1rem 0.5rem;
}

.hm-arch-side .hm-tool {
    grid-template-columns: 60px minmax(0, 1fr);
    gap: 0.6rem;
    padding: 0.4rem;
}

.hm-arch-side .hm-tool-logo {
    height: 30px;
}

.hm-arch-side .hm-tool-icon svg {
    width: 30px;
    height: 30px;
    padding: 6px;
}

/* two-way connector: vertical by default */
.hm-link {
    position: relative;
    display: block;
    width: 2px;
    height: 48px;
    background: var(--hm-line-strong);
}

/* arrowheads at both ends */
.hm-link::before,
.hm-link::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
}

.hm-link::before {
    top: -1px;
    border-bottom: 8px solid var(--hm-blue);
}

.hm-link::after {
    bottom: -1px;
    border-top: 8px solid var(--hm-blue);
}

/* data pulses: blue towards the hub, green back to the tools */
.hm-link > span {
    position: absolute;
    left: 50%;
    width: 6px;
    height: 6px;
    margin-left: -3px;
    border-radius: 50%;
    background: #7dd3fc;
    box-shadow: 0 0 8px #38bdf8;
    animation: hm-pulse-down 2.2s ease-in-out infinite;
}

.hm-link > span:last-child {
    background: #6ee7b7;
    box-shadow: 0 0 8px #34d399;
    animation-name: hm-pulse-up;
    animation-delay: 1.1s;
}

/* vertical connectors between the stacked blocks: only on narrow screens */
.hm-arch-vlink {
    display: none;
    justify-self: center;
}

/* horizontal variant: from each side group across the gap into the hub */
.hm-link-h {
    position: absolute;
    top: 50%;
    width: 48px;
    height: 2px;
    margin-top: -1px;
}

.hm-arch-side-left .hm-link-h { left: 100%; }
.hm-arch-side-right .hm-link-h { right: 100%; }

.hm-link-h::before,
.hm-link-h::after {
    top: 50%;
    bottom: auto;
    left: auto;
    transform: translateY(-50%);
    border: 6px solid transparent;
}

.hm-link-h::before {
    left: -1px;
    border-left: 0;
    border-right: 8px solid var(--hm-blue);
}

.hm-link-h::after {
    right: -1px;
    border-right: 0;
    border-left: 8px solid var(--hm-blue);
}

.hm-link-h > span {
    top: 50%;
    left: 0;
    margin: -3px 0 0;
    animation-name: hm-pulse-right;
}

/* pulses always travel towards the hub first, then back */
.hm-link-h > span:last-child { animation-name: hm-pulse-left; }
.hm-arch-side-right .hm-link-h > span { animation-name: hm-pulse-left; }
.hm-arch-side-right .hm-link-h > span:last-child { animation-name: hm-pulse-right; }

@keyframes hm-flow-down {
    from { top: -14px; }
    to { top: 100%; }
}

@keyframes hm-pulse-down {
    0% { top: 8px; opacity: 0; }
    15%, 85% { opacity: 1; }
    100% { top: calc(100% - 14px); opacity: 0; }
}

@keyframes hm-pulse-right {
    0% { left: 8px; opacity: 0; }
    15%, 85% { opacity: 1; }
    100% { left: calc(100% - 14px); opacity: 0; }
}

@keyframes hm-pulse-left {
    0% { left: calc(100% - 14px); opacity: 0; }
    15%, 85% { opacity: 1; }
    100% { left: 8px; opacity: 0; }
}

@keyframes hm-pulse-up {
    0% { top: calc(100% - 14px); opacity: 0; }
    15%, 85% { opacity: 1; }
    100% { top: 8px; opacity: 0; }
}

/* the hub: SNOOSS integration layer */
.hm-arch-hub {
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-sizing: border-box;
    padding: 1.25rem 1rem;
    border-radius: 24px;
    border: 1px solid rgba(96, 165, 250, 0.55);
    background:
        radial-gradient(ellipse 120% 50% at 50% 0%, rgba(59, 130, 246, 0.24), transparent 70%),
        #0b1224;
    box-shadow: 0 0 0 6px rgba(59, 130, 246, 0.06), 0 30px 90px -20px rgba(59, 130, 246, 0.45);
}

.hm-arch-hub-head {
    text-align: center;
    margin-bottom: 1rem;
}

.hm-arch-core {
    display: inline-block;
    margin-bottom: 0.9rem;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #34d399;
    background: rgba(52, 211, 153, 0.1);
    border: 1px solid rgba(52, 211, 153, 0.35);
}

.hm-arch-hub-head img {
    display: block;
    height: 56px;
    width: auto;
    margin: 0 auto 0.6rem;
}

.hm-arch-hub-head h3 {
    font-size: 1.2rem !important;
    margin: 0 0 0.35rem;
}

.hm-arch-hub-head p {
    color: var(--hm-soft);
    font-size: 0.88rem;
    line-height: 1.5;
}

.hm-hub-tools {
    grid-template-columns: 1fr;
    gap: 0.5rem;
}

.hm-hub-tools .hm-tool {
    grid-template-columns: 56px minmax(0, 1fr);
    background: rgba(30, 41, 59, 0.55);
    border: 1px solid var(--hm-line);
}

/* tool tile: logo or icon + name + function */
.hm-tools {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.25rem;
}

.hm-tool {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem;
    border-radius: 10px;
    transition: background 0.2s ease;
}

.hm-tool:hover {
    background: rgba(30, 41, 59, 0.8);
}

.hm-tool-logo {
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hm-tool-logo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* SNOOSS's own features: icon badge instead of a project logo */
.hm-tool-icon svg {
    width: 34px;
    height: 34px;
    padding: 7px;
    box-sizing: border-box;
    border-radius: 10px;
    color: var(--hm-blue);
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(59, 130, 246, 0.25);
}

.hm-tool-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.hm-tool-text strong {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text-white);
}

.hm-tool-text span {
    font-size: 0.8rem;
    line-height: 1.35;
    color: var(--hm-muted);
}

.hm-arch-more {
    margin-top: 2rem !important;
}

/* the customer's own servers: one box that holds SNOOSS and every tool */
.hm-arch-servers {
    width: 100%;
    box-sizing: border-box;
    padding: 1rem 1.5rem 1.5rem;
    border-radius: 28px;
    border: 1px dashed rgba(52, 211, 153, 0.35);
    background:
        radial-gradient(ellipse 60% 30% at 50% 0%, rgba(52, 211, 153, 0.06), transparent 70%),
        rgba(15, 23, 42, 0.45);
}

.hm-arch-servers-label {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.6rem;
    margin: 0 0 1rem 0.25rem;
    font-size: 0.9rem;
}

.hm-arch-servers-label svg {
    width: 20px;
    height: 20px;
    color: #34d399;
}

.hm-arch-servers-label strong {
    color: var(--text-white);
    font-weight: 700;
}

.hm-arch-servers-label span {
    color: var(--hm-muted);
}

/* modular note: right-aligned on the same row as the label */
.hm-arch-modular {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin: 0 0 0 auto !important;
    font-size: 0.85rem;
    color: var(--hm-soft);
}

.hm-arch-modular svg {
    flex: none;
    width: 16px;
    height: 16px;
    color: var(--hm-blue);
}

.hm-arch-servers-label .hm-arch-modular span::before {
    content: none;
}

.hm-arch-servers-label span::before {
    content: '·';
    margin-right: 0.6rem;
    color: #475569;
}

/* ---------- LLM Analyst spotlight ---------- */
.hm-split {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 4rem;
    align-items: center;
}

/* real LLM Analyst screens next to the AI text: the screenshot gets more room */
#ai .hm-split {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
}

/* the heading sits centred above, so the left column starts with the cards */
#ai .hm-ai-modes {
    margin-top: 0;
}

.hm-ai-shots {
    min-width: 0;
}

/* DFIR-IRIS has a light interface */
.hm-show-panel.is-light {
    background: #fff;
}

.hm-show-caption {
    margin-top: 0.9rem !important;
    text-align: center;
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--hm-muted);
}

/* local / cloud cards inside the AI section */
/* two tabs above the AI screens */
.hm-ai-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 1rem;
}

.hm-ai-tabs .hm-show-tab {
    justify-content: center;
    align-items: center;
    padding: 0.7rem 0.8rem;
    text-align: center;
}

.hm-ai-tabs .hm-show-tab-text strong {
    font-size: 0.98rem;
}

.hm-ai-modes {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.hm-ai-mode {
    padding: 1.25rem;
    border-radius: 16px;
    background: var(--hm-surface);
    border: 1px solid var(--hm-line);
}

.hm-ai-mode .hm-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    margin-bottom: 1rem;
}

.hm-ai-mode .hm-icon svg {
    width: 20px;
    height: 20px;
}

.hm-ai-mode h3 {
    font-size: 1.1rem !important;
}

.hm-ai-mode p {
    color: var(--hm-muted);
    font-size: 0.95rem;
    line-height: 1.5;
    font-weight: 300;
}

.hm-ai-modes + .hm-checks {
    margin-top: 1.75rem;
}

/* ---------- Pricing ---------- */
.hm-price {
    border-radius: 20px;
    background: rgba(2, 6, 23, 0.75);
    border: 1px solid var(--hm-line);
    box-shadow: 0 30px 80px -20px rgba(59, 130, 246, 0.25);
    padding: 1.25rem;
    display: grid;
    gap: 0.75rem;
}

.hm-price-head {
    padding: 0.25rem 0.5rem 0.75rem;
    border-bottom: 1px solid var(--hm-line);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--hm-soft);
}

.hm-price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.1rem;
    border-radius: 14px;
    background: rgba(30, 41, 59, 0.6);
}

/* metrics that do not affect the price: struck through */
.hm-price-label {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    color: #64748b;
    text-decoration: line-through;
    text-decoration-color: rgba(248, 113, 113, 0.6);
}

.hm-price-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    flex: none;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #34d399;
}

.hm-price-tag svg {
    width: 14px;
    height: 14px;
}

.hm-price-row-key {
    flex-wrap: wrap;
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.18), rgba(30, 41, 59, 0.6));
    border: 1px solid var(--hm-line-strong);
}

.hm-price-row-key .hm-price-label {
    color: var(--text-white);
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
}

.hm-price-row-key .hm-price-label svg {
    width: 20px;
    height: 20px;
    color: var(--hm-blue);
}

/* the starting price on the nodes row */
.hm-price-amount {
    display: inline-flex;
    align-items: baseline;
    gap: 0.35rem;
    flex: none;
    white-space: nowrap;
}

.hm-price-amount small {
    font-size: 0.78rem;
    color: var(--hm-muted);
}

.hm-price-amount strong {
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: var(--text-white);
}

.hm-price-planner {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.75rem;
}

.hm-price-planner svg {
    width: 18px;
    height: 18px;
}

/* ---------- Community: GitHub stars ---------- */
.hm-stars-total {
    text-align: center;
    margin: 0 auto 3rem;
}

.hm-stars-figure {
    display: inline-flex;
    align-items: center;
    gap: 0.9rem;
}

.hm-stars-figure svg {
    width: clamp(2.2rem, 4vw, 3.2rem);
    height: clamp(2.2rem, 4vw, 3.2rem);
    color: #fbbf24;
    fill: #fbbf24;
    filter: drop-shadow(0 0 18px rgba(251, 191, 36, 0.45));
}

.hm-stars-figure strong {
    font-size: clamp(3rem, 8vw, 5.5rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.04em;
    font-variant-numeric: tabular-nums;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hm-stars-total p {
    margin-top: 0.75rem !important;
    color: var(--hm-muted);
    font-size: 1.05rem;
}

/* 6 per row, last row centred (22 projects = 6 + 6 + 6 + 4) */
.hm-star-grid {
    --per-row: 6;
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}

.hm-star-grid > li {
    flex: 0 0 calc((100% - (var(--per-row) - 1) * 0.75rem) / var(--per-row));
}

@media (max-width: 960px) {
    .hm-star-grid { --per-row: 4; }
}

@media (max-width: 640px) {
    .hm-star-grid { --per-row: 2; }
}

.hm-star-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.1rem 0.75rem 0.9rem;
    border-radius: 14px;
    border: 1px solid var(--hm-line);
    background: var(--hm-surface);
    color: inherit;
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.hm-star-tile:hover {
    border-color: rgba(251, 191, 36, 0.4);
    background: var(--hm-surface-hover);
    transform: translateY(-2px);
}

.hm-star-tile .hm-tool-logo {
    width: 100%;
    height: 34px;
}

.hm-star-name {
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--text-white);
}

.hm-star-count {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #fbbf24;
    font-variant-numeric: tabular-nums;
}

.hm-star-count svg {
    width: 14px;
    height: 14px;
    fill: #fbbf24;
}

.hm-stars-note {
    text-align: center;
    margin-top: 1.5rem !important;
    font-size: 0.85rem;
    color: #64748b;
}

/* ---------- Plans ---------- */
.hm-plan .button {
    margin-top: auto;
    width: 100%;
    box-sizing: border-box;
}

.hm-plan p {
    margin-bottom: 2rem;
}

.hm-plan-sub {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--hm-blue);
    margin-bottom: 0.5rem;
}

.hm-plan h3 {
    font-size: 1.6rem !important;
}

.hm-plan-featured {
    border-color: var(--hm-line-strong);
    background: linear-gradient(180deg, rgba(59, 130, 246, 0.14) 0%, var(--hm-surface) 60%);
}

.hm-modular-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin: 1.25rem auto 0 !important;
    font-size: 1rem;
    color: var(--hm-soft);
}

.hm-modular-note svg {
    flex: none;
    width: 18px;
    height: 18px;
    color: var(--hm-blue);
}

.hm-industries {
    text-align: center;
    margin-top: 2.5rem !important;
    color: #64748b;
    font-size: 0.95rem;
}

/* ---------- Partners ---------- */
.hm-partner img {
    height: 48px;
    width: auto;
    max-width: 220px;
    object-fit: contain;
    object-position: left;
    margin-bottom: 1.75rem;
}

.hm-partner .hm-plan-sub {
    display: block;
}

/* ---------- Closing CTA ---------- */
.hm-cta {
    text-align: center;
    padding: 4.5rem 2rem;
    border-radius: 28px;
    border: 1px solid var(--hm-line-strong);
    background:
        radial-gradient(ellipse 60% 80% at 50% 0%, rgba(59, 130, 246, 0.25), transparent 70%),
        rgba(15, 23, 42, 0.8);
}

.hm-cta .hm-lead {
    margin: 0 auto 2.25rem;
}

/* contact form */
.hm-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.1rem;
    max-width: 680px;
    margin: 0 auto;
    text-align: left;
}

.hm-form[hidden] {
    display: none;
}

.hm-form-wide {
    grid-column: 1 / -1;
}

.hm-form label {
    display: block;
    margin-bottom: 0.4rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--hm-soft);
}

.hm-form input,
.hm-form textarea {
    display: block;
    box-sizing: border-box;
    width: 100%;
    margin: 0;
    padding: 0.8rem 1rem;
    border: 1px solid var(--hm-line-strong);
    border-radius: 12px;
    background: rgba(2, 6, 23, 0.6);
    font: inherit;
    font-size: 1rem;
    color: var(--text-white);
}

.hm-form textarea {
    min-height: 9rem;
    resize: vertical;
}

.hm-form input:focus-visible,
.hm-form textarea:focus-visible {
    outline: 2px solid var(--hm-blue);
    outline-offset: 1px;
}

.hm-form-trap {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
}

.hm-form-note {
    font-size: 0.88rem;
    line-height: 1.5;
    color: var(--hm-muted);
}

.hm-form-note a,
.hm-form-status a {
    color: var(--hm-blue);
}

.hm-form button {
    cursor: pointer;
}

.hm-form button:disabled {
    opacity: 0.6;
    cursor: wait;
}

.hm-form div.hm-form-wide:last-child {
    text-align: center;
}

.hm-form-status {
    outline: none;
    font-size: 1.05rem;
    line-height: 1.5;
}

.hm-form-status span:not([hidden]) {
    display: block;
    padding-top: 1.25rem;
}

.hm-form-status .is-ok { color: #34d399; }
.hm-form-status .is-error { color: #fca5a5; }

@media (max-width: 600px) {
    .hm-form {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* ---------- Network visibility: NetFlow Explorer chain, hop by hop ---------- */
/* hop tabs in one row; below them the graph and the detail card of the selected hop */
.hm-hops {
    list-style: none;
    margin: 0 0 1.25rem;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
}

.hm-hops li {
    display: flex;
}

.hm-hop {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    width: 100%;
    padding: 0.8rem 0.95rem 0.9rem;
    border-radius: 14px;
    border: 1px solid var(--hm-line);
    background: transparent;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
    overflow: hidden;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.hm-hop:hover {
    background: rgba(30, 41, 59, 0.5);
}

.hm-hop.is-active {
    border-color: rgba(245, 158, 11, 0.45);
    background: var(--hm-surface);
}

.hm-hop-num {
    flex: none;
    width: 26px;
    height: 26px;
    margin-top: 1px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    color: #fff;
    background: #e5484d;
    transition: background 0.2s ease;
}

.hm-hop.is-active .hm-hop-num,
.hm-nf-d-head .hm-hop-num {
    background: #f59e0b;
    box-shadow: 0 0 0 5px rgba(245, 158, 11, 0.15);
}

.hm-hop-text {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.hm-hop-time {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--hm-muted);
}

.hm-hop-text strong {
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--hm-soft);
}

.hm-hop.is-active .hm-hop-text strong {
    color: var(--text-white);
}

/* time left on the current hop while the chain replays on its own */
.hm-hop-progress {
    position: absolute;
    left: 0;
    bottom: 0;
    height: 2px;
    width: 0;
    background: #f59e0b;
}

.hm-netflow.is-playing .hm-hop.is-active .hm-hop-progress {
    animation: hm-hopbar var(--hm-cycle) linear forwards;
}

[data-showcase].is-paused .hm-hop-progress {
    animation-play-state: paused !important;
}

@keyframes hm-hopbar {
    to { width: 100%; }
}

/* wide screens: the block runs wider than the text container, the extra room goes to the graph */
@media (min-width: 1240px) {
    .hm-netflow {
        --w: min(1340px, 100vw - 4rem);
        width: var(--w);
        margin-left: calc((100% - var(--w)) / 2);
    }
}

.hm-nf-body {
    display: grid;
    grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr);
    gap: 1.25rem;
    align-items: stretch;
}

.hm-nf-left {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    min-width: 0;
}

/* the graph window grows to the height of the detail card, graph centred inside */
.hm-nf-left .hm-show-window {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.hm-nf-left .hm-nf-screen {
    flex: 1;
    display: flex;
    align-items: center;
}

/* detail card of the selected hop: flows and the findings mapped to it */
/* all cards share one grid cell, so the box keeps the height of the tallest one
   and the page below does not jump while the hops cycle */
.hm-nf-details {
    display: grid;
    min-width: 0;
}

.hm-nf-detail {
    grid-area: 1 / 1;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    padding: 1.25rem 1.35rem;
    border-radius: 14px;
    border: 1px solid var(--hm-line-strong);
    background: var(--hm-surface);
}

.hm-nf-detail[hidden] {
    display: flex;
    visibility: hidden;
}

.hm-nf-detail:not([hidden]),
.hm-nf-facts {
    animation: hm-show-in 0.5s ease;
}

.hm-nf-d-head {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    flex-wrap: wrap;
}

.hm-nf-tag {
    margin-left: auto;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #fbbf24;
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.35);
}

.hm-nf-detail h3 {
    margin: 0;
    font-size: 1.15rem;
    line-height: 1.35;
}

.hm-nf-d-desc {
    margin: 0 !important;
    font-size: 0.93rem;
    line-height: 1.55;
    font-weight: 300;
    color: var(--hm-muted);
}

.hm-nf-facts {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.5rem 1.25rem;
    margin: 0;
    padding: 0.8rem 1.1rem;
    border-radius: 12px;
    border: 1px solid var(--hm-line);
    background: var(--hm-surface);
}

.hm-nf-facts[hidden] {
    display: none;
}

.hm-nf-facts dt {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #64748b;
}

.hm-nf-facts dd {
    margin: 0.1rem 0 0;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--hm-soft);
    font-variant-numeric: tabular-nums;
}

.hm-nf-findings {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.hm-nf-f-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    flex-wrap: wrap;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-white);
}

.hm-nf-f-host {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.hm-nf-f-host svg {
    width: 15px;
    height: 15px;
    color: #f59e0b;
}

.hm-nf-f-counts {
    display: inline-flex;
    gap: 0.3rem;
}

.hm-sev {
    display: inline-block;
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    line-height: 1.4;
    color: #fff;
    white-space: nowrap;
}

.hm-sev-high {
    background: #c2410c;
}

.hm-sev-medium {
    background: #a16207;
}

.hm-sev-low {
    background: #15803d;
}

.hm-nf-findings ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.45rem;
}

.hm-nf-findings li {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 0.55rem;
    align-items: baseline;
    padding: 0.5rem 0.65rem;
    border-radius: 8px;
    background: rgba(2, 6, 23, 0.45);
    border-left: 2px solid rgba(245, 158, 11, 0.5);
}

.hm-nf-f-time {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--hm-muted);
}

.hm-nf-f-title {
    grid-column: 1 / -1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-top: 0.2rem;
    font-size: 0.85rem;
    line-height: 1.45;
    color: var(--hm-soft);
}

.hm-nf-f-more {
    margin: 0 !important;
    font-size: 0.8rem;
    color: var(--hm-muted);
}

.hm-nf-acts > span {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #64748b;
}

.hm-nf-acts ul {
    list-style: none;
    margin: 0.5rem 0 0;
    padding: 0;
    display: grid;
    gap: 0.45rem;
}

.hm-nf-acts li {
    padding: 0.6rem 0.75rem;
    border-radius: 8px;
    font-size: 0.9rem;
    line-height: 1.45;
    color: var(--hm-soft);
    background: rgba(2, 6, 23, 0.45);
    border-left: 2px solid rgba(229, 72, 77, 0.6);
}

/* the redrawn graph, in the colours of the NetFlow Explorer */
.hm-nf-screen {
    padding: 0.75rem;
    background: rgb(29, 32, 41);
}

.hm-nf {
    display: block;
    width: 100%;
    height: auto;
    font-family: inherit;
}

.hm-nf text:not([text-anchor]) {
    text-anchor: middle;
}

.hm-nf-col {
    fill: rgba(255, 255, 255, 0.035);
    stroke: rgba(148, 163, 184, 0.1);
}

.hm-nf-h {
    fill: #e2e8f0;
    font-size: 17px;
    font-weight: 700;
}

.hm-nf-s {
    fill: #8b93a3;
    font-size: 13px;
}

/* hosts appear once the chain reaches them, or in gray once a step mentions them */
.hm-nf-node {
    opacity: 0;
    transition: opacity 0.5s ease;
}

.hm-nf-node.is-shown,
.hm-nf-node.is-seen {
    opacity: 1;
}

.hm-nf-node rect {
    fill: #1b1e27;
    stroke: #3b82f6;
    stroke-width: 2;
    transition: stroke 0.3s ease, fill 0.3s ease;
}

.hm-nf-node.is-start rect {
    stroke: #e5484d;
}

.hm-nf-node.is-active rect {
    stroke: #f59e0b;
    fill: #2a2418;
}

.hm-nf-node.is-seen rect {
    stroke: #5b6372;
}

.hm-nf-ip {
    fill: #fff;
    font-size: 16px;
    font-weight: 700;
}

.hm-nf-node.is-seen text {
    fill: #8b93a3;
}

.hm-nf-sub {
    fill: #a3abba;
    font-size: 12px;
}

/* hops: hidden until reached, earlier ones in red, the current one drawn in orange */
.hm-nf-hop {
    opacity: 0;
    transition: opacity 0.4s ease;
}

.hm-nf-hop path {
    fill: none;
    stroke: #e5484d;
    stroke-width: 2.4;
}

.hm-nf-hop polygon,
.hm-nf-hop circle {
    fill: #e5484d;
}

.hm-nf-num {
    fill: #fff;
    font-size: 12.5px;
    font-weight: 700;
}

.hm-nf-svc {
    fill: #e2e8f0;
    font-size: 13px;
    paint-order: stroke;
    stroke: rgb(29, 32, 41);
    stroke-width: 4px;
    stroke-linejoin: round;
}

.hm-nf-hop.is-past {
    opacity: 0.55;
}

.hm-nf-hop.is-active {
    opacity: 1;
}

.hm-nf-hop.is-active path {
    stroke: #f59e0b;
    stroke-width: 3;
    stroke-dasharray: 1;
    stroke-dashoffset: 0;
    filter: drop-shadow(0 0 5px rgba(245, 158, 11, 0.6));
    animation: hm-nf-draw 1.1s ease-out both;
}

.hm-nf-hop.is-active polygon,
.hm-nf-hop.is-active circle {
    fill: #f59e0b;
}

.hm-nf-hop.is-active polygon,
.hm-nf-hop.is-active .hm-nf-lab {
    animation: hm-nf-pop 0.4s ease 0.9s both;
}

@keyframes hm-nf-draw {
    from { stroke-dashoffset: 1; }
    to { stroke-dashoffset: 0; }
}

@keyframes hm-nf-pop {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ---------- Why not do it yourself: do it yourself vs. SNOOSS ---------- */
.hm-compare {
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(7, auto); /* header + 6 rows */
    column-gap: 2rem;
    max-width: 980px;
    margin: 0 auto;
}

/* one panel behind each column, so the rows read as two lists */
.hm-compare::before,
.hm-compare::after {
    content: '';
    position: absolute; /* absolute grid items span the column without taking up cells */
    inset: 0;
    grid-row: 1 / -1;
    border-radius: 20px;
    border: 1px solid var(--hm-line);
}

.hm-compare::before {
    grid-column: 1 / 2; /* needs an end line, otherwise it runs to the container edge */
    background: rgba(15, 23, 42, 0.5);
}

.hm-compare::after {
    grid-column: 2 / 3;
    border-color: var(--hm-line-strong);
    background: linear-gradient(180deg, rgba(59, 130, 246, 0.16) 0%, var(--hm-surface) 55%);
    box-shadow: 0 20px 60px -30px rgba(59, 130, 246, 0.5);
}

.hm-cmp-head,
.hm-cmp-cell {
    position: relative;
    z-index: 1;
    padding: 0 1.75rem;
}

.hm-cmp-head {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    min-height: 2.25rem;
    padding-top: 1.5rem;
    padding-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 700;
}

.hm-cmp-head.hm-cmp-diy {
    color: var(--hm-muted);
}

.hm-cmp-head.hm-cmp-snooss {
    color: var(--text-white);
}

.hm-cmp-head img {
    height: 28px;
    width: auto;
}

.hm-cmp-cell {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding-top: 0.9rem;
    padding-bottom: 0.9rem;
    font-size: 1.02rem;
    line-height: 1.5;
}

/* thin divider between the rows inside each panel */
.hm-cmp-cell::before {
    content: '';
    position: absolute;
    top: 0;
    left: 1.75rem;
    right: 1.75rem;
    height: 1px;
    background: var(--hm-line);
}

.hm-compare > .hm-cmp-cell:nth-last-child(-n + 2) {
    padding-bottom: 1.75rem;
}

.hm-cmp-cell svg {
    flex: none;
    width: 20px;
    height: 20px;
    margin-top: 2px;
    padding: 3px;
    border-radius: 50%;
}

.hm-cmp-diy.hm-cmp-cell {
    color: var(--hm-muted);
    font-weight: 300;
}

.hm-cmp-diy svg {
    color: #f87171;
    background: rgba(248, 113, 113, 0.12);
}

.hm-cmp-snooss.hm-cmp-cell {
    color: var(--hm-soft);
}

.hm-cmp-snooss svg {
    color: #34d399;
    background: rgba(52, 211, 153, 0.12);
}

/* phones: each "do it yourself" line sits right above its SNOOSS answer */
@media (max-width: 760px) {
    .hm-compare {
        grid-template-columns: 1fr;
        grid-template-rows: none;
        row-gap: 0;
    }

    .hm-compare::before,
    .hm-compare::after,
    .hm-cmp-head.hm-cmp-diy,
    .hm-cmp-cell::before {
        display: none;
    }

    .hm-cmp-head {
        justify-content: center;
        padding: 0 0 1rem;
    }

    .hm-cmp-cell {
        padding: 0 1.1rem;
    }

    .hm-cmp-diy.hm-cmp-cell {
        margin-top: 0.75rem;
        padding-top: 0.9rem;
        padding-bottom: 0.6rem;
        border: 1px solid var(--hm-line);
        border-bottom: 0;
        border-radius: 16px 16px 0 0;
        background: rgba(15, 23, 42, 0.5);
        font-size: 0.95rem;
    }

    .hm-cmp-snooss.hm-cmp-cell {
        padding-top: 0.6rem;
        padding-bottom: 0.9rem;
        border: 1px solid var(--hm-line-strong);
        border-radius: 0 0 16px 16px;
        background: rgba(59, 130, 246, 0.1);
    }

    .hm-compare > .hm-cmp-cell:nth-last-child(-n + 2) {
        padding-bottom: 0.9rem;
    }
    .hm-compare > .hm-cmp-diy.hm-cmp-cell:nth-last-child(2) {
        padding-bottom: 0.6rem;
    }
}

/* ---------- Not just a SIEM ---------- */
.hm-siem-label {
    padding-bottom: 1rem; /* paragraph margins are reset site-wide */
    text-align: center;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--hm-muted);
}

.hm-siem-card {
    padding: 1.6rem;
}

.hm-siem-card h3 {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    margin: 0 0 0.6rem;
    font-size: 1.15rem !important;
    line-height: 1.35;
}

.hm-siem-card h3 svg {
    flex: none;
    width: 22px;
    height: 22px;
    margin-top: 0.1em;
    color: var(--hm-blue);
}

.hm-siem-tools {
    margin-top: auto;
    padding-top: 1rem;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--hm-blue);
}

.hm-siem-base {
    align-items: center;
    max-width: 560px;
    margin: 0 auto 2.5rem;
    text-align: center;
}

.hm-siem-base h3 {
    margin: 0;
}

.hm-siem-base .hm-siem-tools {
    padding-top: 0.5rem;
}

/* ---------- Time comparison (inside "Why not do it yourself") ---------- */
.hm-time {
    --c-snooss: #3b82f6;
    --c-diy: #d97706;
    --label: 230px;
    max-width: 980px;
    margin: 4.5rem auto 0;
}

.hm-time-intro {
    text-align: center;
    margin-bottom: 1.75rem;
}

.hm-time-intro h3 {
    font-size: clamp(1.4rem, 2.4vw, 1.9rem) !important;
}

.hm-time-intro p {
    max-width: 640px;
    margin: 0 auto;
    color: var(--hm-muted);
    font-weight: 300;
    line-height: 1.6;
}

.hm-time-panels {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem 2rem;
    margin-bottom: 1rem;
}

.hm-time-panel {
    padding: 1.2rem 1.4rem;
    border-radius: 16px;
    border: 1px solid var(--hm-line);
    background: rgba(15, 23, 42, 0.5);
}

.hm-time-panel.hm-time-snooss {
    border-color: var(--hm-line-strong);
    background: rgba(59, 130, 246, 0.1);
}

.hm-time-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem 0.6rem;
    margin-bottom: 0.6rem;
}

.hm-time-key {
    width: 18px;
    height: 8px;
    border-radius: 4px;
}

.hm-time-snooss .hm-time-key,
.hm-time-bar.hm-time-snooss { background: var(--c-snooss); }

.hm-time-diy .hm-time-key,
.hm-time-bar.hm-time-diy { background: var(--c-diy); }

.hm-time-count {
    margin-left: auto;
    font-size: 0.85rem;
    color: var(--hm-muted);
}

/* always room for two digits, so the line does not wrap differently at "10" */
.hm-time-count b {
    display: inline-block;
    min-width: 2ch;
    text-align: right;
    font-size: 2.4rem;
    font-weight: 800;
    line-height: 1;
    color: var(--text-white);
}

/* all texts share one cell, so the height stays the same while sliding */
.hm-time-story {
    display: grid;
}

.hm-time-story p {
    grid-area: 1 / 1;
    line-height: 1.55;
    color: var(--hm-soft);
}

.hm-time-story p[hidden] {
    display: block;
    visibility: hidden;
}

/* chart and, next to it on wide screens, the table of what is done so far */
.hm-time-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
}

@media (min-width: 1240px) {
    .hm-time {
        --w: min(1340px, 100vw - 4rem);
        --label: 205px;
        width: var(--w);
        max-width: none;
        margin-left: calc((100% - var(--w)) / 2);
    }

    .hm-time-body {
        grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
    }
}

.hm-time-log {
    padding: 1.25rem 1.4rem 1rem;
    border-radius: 16px;
    border: 1px solid var(--hm-line);
    background: rgba(15, 23, 42, 0.5);
}

.hm-time-log h4 {
    margin: 0 0 0.75rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-white);
}

.hm-time-log table {
    width: 100%;
    table-layout: fixed;
    border-collapse: separate; /* collapsed borders would show for hidden rows */
    border-spacing: 0;
    font-size: 0.88rem;
    line-height: 1.45;
}

.hm-time-log th,
.hm-time-log td {
    padding: 0.65rem 0.6rem;
    border: 0;
    border-bottom: 1px solid var(--hm-line);
    background: none;
    text-align: left;
    vertical-align: top;
    color: var(--hm-soft);
}

.hm-time-log th {
    font-weight: 600;
    color: var(--text-white);
}

.hm-time-log th:first-child {
    width: 5.2rem;
}

.hm-time-log thead .hm-time-key {
    display: inline-block;
    margin-right: 0.45rem;
}

/* rows still to come keep their space, so the page does not jump while the list grows */
.hm-time-log tbody tr {
    transition: opacity 0.6s ease;
}

.hm-time-log tbody tr[hidden] {
    display: table-row;
    visibility: hidden;
    opacity: 0;
}

.hm-time-log tbody tr.is-current > * {
    background: rgba(96, 165, 250, 0.09);
}

.hm-time-chart {
    padding: 1.25rem 1.4rem 1rem;
    border-radius: 16px;
    border: 1px solid var(--hm-line);
    background: rgba(15, 23, 42, 0.5);
}

.hm-time-rows {
    list-style: none;
    margin: 0;
    padding: 0;
}

.hm-time-row {
    position: relative;
    display: grid;
    grid-template-columns: var(--label) minmax(0, 1fr);
    align-items: center;
}

.hm-time-label {
    padding: 0.4rem 1rem 0.4rem 0;
    line-height: 1.3;
}

.hm-time-label strong {
    display: block;
    font-size: 0.93rem;
    font-weight: 600;
    color: var(--hm-soft);
}

.hm-time-label small {
    font-size: 0.78rem;
    color: var(--hm-muted);
}

/* one column per point in time: hairlines, the current column is tinted */
.hm-time-track {
    position: relative;
    align-self: stretch;
    min-height: 46px;
    border-bottom: 1px solid var(--hm-line);
    background:
        linear-gradient(rgba(96, 165, 250, 0.09), rgba(96, 165, 250, 0.09)) calc((var(--t) - 1) * 20%) 0 / calc(100% / 6) 100% no-repeat,
        repeating-linear-gradient(90deg, var(--hm-line) 0 1px, transparent 1px calc(100% / 6));
    transition: background-position 0.35s ease;
}

.hm-time-bar {
    position: absolute;
    left: calc((var(--r) - 1) * 100% / 6);
    width: calc(max(0, var(--t) - var(--r) + 1) * 100% / 6);
    height: 10px;
    border-radius: 0 4px 4px 0;
    transition: width 0.35s ease;
}

.hm-time-bar.hm-time-snooss { top: calc(50% - 11px); }
.hm-time-bar.hm-time-diy { top: calc(50% + 1px); }

.hm-time-sr {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.hm-time-axis {
    margin-left: var(--label);
    padding-bottom: 0.9rem;
}

/* while it plays by itself everything moves more slowly and the thumb pulses */
.hm-time.is-playing .hm-time-track { transition-duration: 1s; }
.hm-time.is-playing .hm-time-bar { transition-duration: 1s; }

.hm-time.is-playing .hm-time-axis input::-webkit-slider-thumb { animation: hm-time-pulse 2s ease-out infinite; }
.hm-time.is-playing .hm-time-axis input::-moz-range-thumb { animation: hm-time-pulse 2s ease-out infinite; }

@keyframes hm-time-pulse {
    from { box-shadow: 0 0 0 2px var(--hm-blue), 0 0 0 2px rgba(96, 165, 250, 0.6); }
    to { box-shadow: 0 0 0 2px var(--hm-blue), 0 0 0 16px rgba(96, 165, 250, 0); }
}

/* the thumb (24px) stops in the middle of each column */
.hm-time-axis input {
    -webkit-appearance: none;
    appearance: none;
    display: block;
    box-sizing: border-box;
    width: calc(100% * 5 / 6 + 24px);
    height: 24px;
    margin: 0 0 0 calc(100% / 12 - 12px);
    padding: 0;
    border: 0;
    background: none;
    position: relative;
    z-index: 1; /* thumb above the line drawn by .hm-time-ticks */
    cursor: pointer;
}

.hm-time-axis input::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    border: 4px solid #0f172a;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 0 2px var(--hm-blue);
    cursor: grab;
}

.hm-time-axis input::-moz-range-thumb {
    box-sizing: border-box;
    width: 24px;
    height: 24px;
    border: 4px solid #0f172a;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 0 2px var(--hm-blue);
    cursor: grab;
}

.hm-time-axis input:focus-visible {
    outline: 2px solid var(--hm-blue);
    outline-offset: 4px;
    border-radius: 12px;
}

.hm-time-ticks {
    position: relative;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0;
    padding-top: 0.4rem;
}

/* slider line: the whole way, and the part already covered */
.hm-time-ticks::before,
.hm-time-ticks::after {
    content: "";
    position: absolute;
    top: -14px;
    left: calc(100% / 12);
    width: calc(100% * 5 / 6);
    height: 4px;
    border-radius: 2px;
    background: var(--hm-line-strong);
}

.hm-time-ticks::after {
    width: calc((var(--p) - 1) * 100% / 6); /* --p: where the thumb is, also between two times */
    background: var(--c-snooss);
}

.hm-time-ticks button {
    position: relative;
    margin: 0 4px;
    padding: 0.5rem 0.2rem;
    border: 1px solid var(--hm-line-strong);
    border-radius: 10px;
    background: rgba(59, 130, 246, 0.08);
    font: inherit;
    font-size: 0.88rem;
    color: var(--hm-soft);
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.hm-time-ticks button:hover {
    background: rgba(59, 130, 246, 0.25);
    color: var(--text-white);
}

.hm-time-ticks button.is-active {
    border-color: var(--hm-blue);
    background: rgba(59, 130, 246, 0.35);
    font-weight: 700;
    color: var(--text-white);
}

@media (max-width: 760px) {
    .hm-time {
        --label: 0px;
        margin-top: 3.5rem;
    }

    .hm-time-panels {
        grid-template-columns: 1fr;
    }

    .hm-time-count,
    .hm-time-head strong {
        white-space: nowrap;
    }

    .hm-time-count {
        font-size: 0.78rem;
    }

    .hm-time-count b {
        font-size: 1.8rem;
    }

    .hm-time-chart,
    .hm-time-log {
        padding: 1rem;
    }

    .hm-time-axis {
        padding: 0 0 0.5rem;
    }

    .hm-time-log table {
        font-size: 0.82rem;
    }

    .hm-time-log th,
    .hm-time-log td {
        padding: 0.55rem 0.35rem;
        overflow-wrap: break-word;
    }

    .hm-time-log th:first-child {
        width: 5.2rem;
    }

    .hm-time-row {
        grid-template-columns: 1fr;
    }

    .hm-time-label {
        display: flex;
        align-items: baseline;
        gap: 0.5rem;
        padding: 0.5rem 0 0.2rem;
    }

    .hm-time-track {
        min-height: 30px;
    }

    .hm-time-ticks button {
        margin: 0 2px;
        padding: 0.5rem 0;
        font-size: 0.72rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hm-time-track,
    .hm-time-bar,
    .hm-time-log tbody tr {
        transition: none;
    }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
    .hm-showcase {
        grid-template-columns: 1fr;
    }

    .hm-show-tabs {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }

    .hm-show-tab {
        flex-direction: column;
        align-items: center;
        gap: 0.6rem;
        text-align: center;
        padding: 0.8rem 0.5rem 0.9rem;
    }

    .hm-show-tab-text strong {
        font-size: 0.9rem;
    }

    /* side by side there is no room for the descriptions */
    .hm-show-tab .hm-show-tab-text span {
        display: none;
    }
    /* diagram: stack groups, hub, groups with vertical two-way links */
    .hm-arch-main {
        grid-template-columns: 1fr;
    }

    .hm-arch-vlink {
        display: block;
        margin: 0 auto;
    }

    .hm-link-h {
        display: none;
    }

    .hm-hub-tools {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 960px) {
    .hm-grid-3 {
        grid-template-columns: 1fr;
    }

    .hm-split,
    #ai .hm-split {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

}

@media (max-width: 640px) {
    .hm-section {
        padding: 4.5rem 0;
    }

    .hm-hero {
        padding: 3rem 0 4.5rem;
    }

    .hm-grid-2,
    .hm-ai-modes {
        grid-template-columns: 1fr;
    }

    .hm-actions .button {
        width: 100%;
    }

    .hm-card {
        padding: 1.5rem;
    }

    .hm-cta {
        padding: 3rem 1.25rem;
    }

    .hm-hub-tools,
    .hm-arch-side .hm-tools {
        grid-template-columns: 1fr;
    }

    .hm-arch-sources ul {
        grid-auto-flow: row;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding-bottom: 0;
    }

    .hm-arch-sources li::before,
    .hm-arch-sources li::after {
        display: none;
    }

    .hm-arch-sources + .hm-arch-flow {
        background: linear-gradient(180deg, transparent, var(--hm-line-strong));
    }

    .hm-show-tabs {
        grid-template-columns: 1fr;
    }

    .hm-show-tab {
        flex-direction: row;
        text-align: left;
        padding: 0.7rem 0.9rem;
    }

    .hm-show-note {
        text-align: center;
    }

    .hm-arch-hub {
        padding: 1.25rem 0.75rem 0.75rem;
    }

    .hm-arch-servers {
        padding: 0.9rem 0.6rem 0.6rem;
        border-radius: 20px;
    }

    .hm-arch-servers-label span::before {
        display: none;
    }

    .hm-arch-modular {
        margin: 0.4rem 0 0 !important;
        align-items: flex-start;
    }

    .hm-modular-note {
        align-items: flex-start;
        text-align: left;
    }
}

/* Network visibility on tablets and phones: hop tabs (stacked on phones), graph, then the detail card */
@media (max-width: 960px) {
    .hm-hops {
        gap: 0.5rem;
    }

    .hm-nf-body {
        grid-template-columns: 1fr;
    }

    .hm-nf-screen {
        padding: 0.4rem;
    }
}

@media (max-width: 640px) {
    .hm-hops {
        grid-template-columns: 1fr;
    }

    .hm-hop {
        padding: 0.6rem 0.7rem 0.7rem;
        gap: 0.55rem;
    }

    .hm-hop-text strong {
        font-size: 0.82rem;
    }

    .hm-nf-detail {
        padding: 1rem;
    }
}

@media (prefers-reduced-motion: reduce) {

    .hm-arch-flow::after,
    .hm-link span {
        animation: none;
    }

    .hm-link span {
        display: none;
    }

    .hm-show-panel.is-active,
    .hm-nf-hop.is-active path,
    .hm-nf-hop.is-active polygon,
    .hm-nf-hop.is-active .hm-nf-lab,
    .hm-nf-detail:not([hidden]),
    .hm-nf-facts {
        animation: none;
    }

    .hm-lightbox {
        transition: none;
    }

    .hm-card-link:hover {
        transform: none;
    }
}

/* very narrow phones: long labels ("Netzwerkverkehr") don't fit two chips per row, so one per row.
   At the end so it wins over the two-column rule for phones above. */
@media (max-width: 380px) {
    .hm-arch-sources ul {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* keeps a hyphenated German word on one line, so no line ends on a dangling "-" */
.hm-nobreak {
    white-space: nowrap;
}
