﻿/* RASATA — graphite, mineral olive and precision. No framework or build step. */
.hub-home {
    --bg-primary: #10130f; --bg-secondary: #191e17;
    --text-primary: #f2f3e9; --text-secondary: #aeb6a5;
    --accent-primary: #c5dd91; --accent-secondary: #97b867;
    --accent-gradient: linear-gradient(120deg, #d1e7a5, #b3cf7e);
    --glass-bg: #1a2116; --glass-bg-rich: #1a2116;
    background: radial-gradient(ellipse at 79% 16%, #4d63301c, transparent 39%), var(--bg-primary);
}
.hub-home .container { max-width: 1440px; padding-left: 64px; padding-right: 64px; }
.hub-home header { background: #10130fed; border-image: none; border-bottom: 1px solid #c6dbad14; box-shadow: none; backdrop-filter: blur(12px); padding: 20px 0; }
.hub-home .logo img { height: 36px; }
.hub-home nav { gap: 24px; }
.hub-home nav .desktop-nav { margin-left: auto; margin-right: 26px; }
.hub-home nav .desktop-nav a { font-size: .84rem; }
.hub-home .active-nav-link { background: #d0e5a4 !important; color: #1d2913 !important; box-shadow: none; font-size: .78rem; padding: 11px 22px; border-radius: 5px; }
.hub-home .applications-dropdown-menu { background: #1a2116; border-color: #c4d7a32b; }
.hub-home .mobile-nav { background: #171d13f8; }
.hub-home .hamburger { width: 44px; height: 44px; justify-content: center; gap: 6px; padding: 8px; }
.hub-home main { padding-top: 85px; }
.hub-home :focus-visible { outline: 2px solid #d0e5a4; outline-offset: 5px; }
.hub-home .btn-primary { color: #1d2913; box-shadow: none; font-size: .85rem; border-radius: 5px; padding: 18px 24px; letter-spacing: 0; }
.hub-home .btn-primary:hover { background: #dcecbf; box-shadow: 0 5px 22px #0003; transform: translateY(-2px); }
.hub-home .btn-primary::before, .hub-home .app-card::before, .hub-home .app-card::after { display: none; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 2000; padding: 14px 20px; background: #d0e5a4; color: #1d2913; border-radius: 6px; transform: translateY(-160%); }
.skip-link:focus { transform: none; }

/* Editorial hero and the actual 3D workspace share the first screen. */
.hub-home .ecosystem-hero { display: grid; grid-template-columns: .82fr 1.18fr; gap: 38px; align-items: center; padding-top: 38px; padding-bottom: 64px; }
.eyebrow { display: flex; align-items: center; gap: 11px; color: #b9c6a9; font: 500 .62rem/1.7 'Inter', sans-serif; letter-spacing: .19em; }
.status-dot { display: inline-block; flex-shrink: 0; width: 5px; height: 5px; border-radius: 50%; background: #c5dd91; box-shadow: 0 0 0 4px #c5dd910b; }
.ecosystem-copy { padding-bottom: 22px; }
.ecosystem-copy h1 { margin: 28px 0; font-size: clamp(3.2rem, 5.5vw, 5.4rem); font-weight: 500; line-height: 1.08; letter-spacing: -.065em; }
.ecosystem-copy h1 em { font-style: normal; color: #c5dd91; }
.hero-intro { color: var(--text-secondary); font-size: .97rem; line-height: 1.9; max-width: 355px; }
.ecosystem-copy .hero-actions { justify-content: flex-start; margin-top: 31px; }
.ecosystem-copy .btn span { font-size: 1.25rem; margin-left: 15px; }
.hero-domains { margin-top: 29px; display: flex; flex-wrap: wrap; gap: 10px; color: #a8b29d; font-size: .6rem; letter-spacing: .02em; line-height: 1.8; max-width: 430px; }
.hero-domains span { color: #56604b; }
.hero-domains a { color: inherit; text-decoration: none; transition: color .2s; }
.hero-domains a:hover { color: #e1ebd2; }

.ecosystem { min-width: 0; position: relative; --scene-height: 510px; }
.ecosystem-topline { display: flex; justify-content: space-between; align-items: center; gap: 15px; color: #9da98f; font: 500 .53rem/1.5 'Inter', sans-serif; letter-spacing: .14em; padding: 0 7px 15px; border-bottom: 1px solid #aebf941c; }
.ecosystem-topline > span:first-child { display: flex; align-items: center; gap: 9px; }
.ecosystem-topline > span:last-child { white-space: nowrap; font-size: .5rem; }
.ecosystem-stage { position: relative; height: var(--scene-height); isolation: isolate; touch-action: pan-y; }
.ecosystem-viewport { position: absolute; inset: 0; height: var(--scene-height); overflow: hidden; }
.ecosystem-viewport::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(#a5bb7910 1px, transparent 1px), linear-gradient(90deg, #a5bb7910 1px, transparent 1px); background-size: 44px 44px; mask-image: radial-gradient(ellipse, black, transparent 72%); }
.ecosystem-viewport::after { content: ''; position: absolute; inset: 5%; pointer-events: none; z-index: -1; background: radial-gradient(ellipse, #9db87816, transparent 68%); }
.ecosystem-viewport canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: 0; transition: opacity 1s ease; }
.ecosystem.is-webgl canvas { opacity: 1; }
.ecosystem-center { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 6px; pointer-events: none; z-index: 2; }
.hub-illustration { display: block; width: 88px; height: 88px; object-fit: contain; }
.ecosystem-fallback { position: absolute; inset: 0; pointer-events: none; transition: opacity .5s; }
.ecosystem-fallback::after { content: ''; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) rotate(-12deg); width: 138px; height: 138px; border-radius: 50%; background: radial-gradient(ellipse at 30% 20%, #455638, #1a2417 75%); border: 1px solid #b8cf8d7a; box-shadow: 5px 9px 0 #131b10, 6px 10px 0 #7d925d5c, 10px 18px 0 #172012, 11px 19px 0 #7d925d38, 0 25px 45px #0005; }
.ecosystem-fallback svg { width: 100%; height: 100%; overflow: visible; fill: none; stroke: #a9c180; stroke-opacity: .32; stroke-width: 1; vector-effect: non-scaling-stroke; }
.ecosystem-fallback path { vector-effect: non-scaling-stroke; }
.ecosystem.is-webgl .ecosystem-fallback { opacity: 0; }
.ecosystem-nodes { position: absolute; inset: 0; z-index: 3; }
.ecosystem-node { position: absolute; left: var(--node-x); top: var(--node-y); transform: translate(-50%, -22px); width: 148px; min-height: 70px; padding: 7px 4px; background: none; border: 0; color: #d9e0ce; display: flex; flex-direction: column; align-items: center; gap: 21px; font: 500 .66rem/1.3 'Inter', sans-serif; text-align: center; cursor: pointer; transition: opacity .2s, color .2s; border-radius: 6px; }
.ecosystem-node i { position: relative; display: grid; place-items: center; width: 30px; height: 30px; color: #d0e2aa; font-size: 1.15rem; transition: color .2s; }
.ecosystem-node > span { padding: 3px 7px; border-radius: 4px; background: #10130fbb; line-height: 1.35; }
.ecosystem-node small { position: absolute; top: 7px; left: calc(50% + 37px); font: 400 .45rem 'Inter', sans-serif; color: #8fa277; }
.ecosystem:not(.is-webgl) .ecosystem-node i::before { z-index: 1; }
.ecosystem:not(.is-webgl) .ecosystem-node i::after { content: ''; position: absolute; z-index: -1; width: 57px; height: 45px; top: -7px; border: 1px solid #aabd864d; border-radius: 11px; background: linear-gradient(135deg, #35452d, #1d2819); box-shadow: 3px 5px 0 #11180e, 4px 6px 0 #8fa56838, 0 10px 20px #0004; transform: rotate(-4deg); }
.ecosystem-node:hover, .ecosystem-node[aria-pressed="true"] { color: #f1f8e2; }
.ecosystem-node[aria-pressed="true"] > span { background: #c5dd91; color: #17200e; }
.ecosystem-node[aria-pressed="true"] i { color: #f0ffd0; }
.ecosystem-nodes:has([aria-pressed="true"]) .ecosystem-node[aria-pressed="false"] { opacity: .5; }
@media (min-width: 601px) {
    /* The button anchor follows the face centre; only its icon follows the
       surface perspective, leaving labels and keyboard targets readable. */
    .ecosystem.is-webgl .ecosystem-node { padding-top: 58px; gap: 0; }
    .ecosystem.is-webgl .ecosystem-node i { position: absolute; left: 50%; top: 22px; transform-origin: 0 0; line-height: 1; }
}
.ecosystem-info { position: relative; min-height: 191px; padding: 22px 25px; border: 1px solid #c0d19d20; border-radius: 10px; background: linear-gradient(115deg, #222d1db0, #19211577); display: grid; align-content: center; }
.ecosystem-default { display: flex; align-items: center; gap: 16px; }
.ecosystem-default[hidden] { display: none; }
.ecosystem-default > span:last-child { margin-left: auto; color: #c5dd91; font-size: 1.3rem; }
.ecosystem-default p { color: #d6e0ca; font-size: .84rem; line-height: 1.7; }
.ecosystem-default small { display: block; color: #a7b198; font-size: .66rem; margin-top: 7px; }
.ecosystem-detail-category { color: #bfd895; font-size: .55rem; text-transform: uppercase; letter-spacing: .13em; }
#ecosystem-detail h2 { font-size: 1.05rem; font-weight: 500; margin: 5px 0 8px; letter-spacing: -.025em; }
.ecosystem-detail-description { font-size: .73rem; line-height: 1.7; color: #b7c2ac; }
.ecosystem-detail-link { display: inline-flex; align-items: center; gap: 14px; margin-top: 9px; padding: 7px 0; color: #d0e5a4; font-size: .72rem; text-decoration: none; }
.ecosystem-detail-link:hover { text-decoration: underline; }
.ecosystem-noscript { margin: 15px 0; color: #bbc7ac; font-size: .8rem; line-height: 1.7; }

/* Catalogue: retain the search/filter model and make the hierarchy clearer. */
.hub-home #hub { padding-top: 50px; padding-bottom: 90px; border-top: 1px solid #c6dbad20; scroll-margin-top: 95px; }
.hub-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 38px; }
.hub-heading .eyebrow { font-size: .56rem; margin-bottom: 12px; }
.hub-heading .section-title { text-align: left; font-size: 2.1rem; font-weight: 500; margin: 0; letter-spacing: -.045em; }
.app-count { display: inline-block; vertical-align: middle; color: #c5d7ac; font: 400 .7rem 'Inter', sans-serif; margin-left: 15px; padding: 5px 8px; border: 1px solid #aac18442; border-radius: 5px; letter-spacing: 0; }
.app-count:empty { display: none; }
.hub-heading > p { font-size: .73rem; color: var(--text-secondary); margin-bottom: 5px; }
.hub-home .hub-container { grid-template-columns: 210px 1fr; gap: 30px; }
.hub-home .hub-sidebar { padding: 0 12px 0 0; border: 0; border-radius: 0; background: none; box-shadow: none; backdrop-filter: none; top: 110px; }
.hub-home .hub-sidebar h3 { font-size: .6rem; padding: 8px 12px 17px; margin-bottom: 10px; }
.hub-home .filter-link { font-size: .73rem; padding: 13px 10px; gap: 9px; border-radius: 5px; border-left-width: 2px; }
.hub-home .filter-link.active { background: #c5dd910c; box-shadow: none; }
.hub-home .filter-link i { font-size: .8rem; }
.hub-home .search-bar { margin-bottom: 23px; }
.hub-home .search-bar input { border-radius: 7px; background: #ffffff03; padding-top: 15px; padding-bottom: 15px; font-size: .82rem; backdrop-filter: none; }
.hub-home .search-bar input::placeholder { font-style: normal; opacity: 1; letter-spacing: 0; }
.hub-home .search-bar input:focus { border-color: #c5dd91; box-shadow: 0 0 0 3px #c5dd9115; }
.hub-home .app-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 17px; }
.hub-home .app-card { padding: 27px; background: linear-gradient(145deg, #20281b, #181e14); border-color: #c4d7a324; border-radius: 10px; }
.hub-home .app-card:hover { border-color: #c5dd9170; box-shadow: 0 14px 32px #0003; transform: translateY(-4px); }
.hub-home .app-header { flex-direction: column; align-items: flex-start; gap: 21px; margin-bottom: 16px; }
.hub-home .app-icon { width: 47px; height: 47px; font-size: 1.17rem; background: #c5dd910a; border: 1px solid #c5dd9129; border-radius: 11px; color: #c5dd91; box-shadow: 0 3px 0 #11180c; }
.hub-home .app-title h4 { font-size: 1rem; font-weight: 500; letter-spacing: -.025em; margin-bottom: 7px; }
.hub-home .app-category-tag { font-size: .53rem; color: #b5c3a5; opacity: 1; letter-spacing: .09em; }
.hub-home .app-card p { font-size: .78rem; line-height: 1.85; }
.hub-home .app-card .btn { background: none; box-shadow: none; border: 1px solid #c5dd912e; color: #c5dd91; font-size: .71rem; padding: 11px 14px; border-radius: 5px; }
.hub-home .app-card .btn::after { content: '↗'; margin-left: 10px; }
.hub-home .app-card .btn:hover { background: #c5dd910b; transform: none; border-color: #c5dd9188; }
.hub-home footer { padding: 30px 0; border-top: 1px solid #c6dbad1c; }
.hub-home footer::before { display: none; }
.hub-home footer .container { justify-content: space-between; gap: 20px; }
.hub-home .footer-contact, .hub-home #copyright { font-size: .67rem; letter-spacing: 0; }
@media (min-width: 1700px) { .hub-home .ecosystem-hero { padding-top: 65px; padding-bottom: 80px; } }
@media (max-width: 1200px) {
    .hub-home .container { padding-left: 36px; padding-right: 36px; }
    .hub-home .ecosystem-hero { grid-template-columns: .85fr 1.15fr; gap: 20px; }
    .ecosystem-copy h1 { font-size: clamp(3.3rem, 5.6vw, 4.7rem); }
    .ecosystem-node { font-size: .61rem; width: 125px; }
    .ecosystem-node small { left: calc(50% + 30px); }
    .hub-home .app-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
    .hub-home .ecosystem-hero { grid-template-columns: 1fr; gap: 32px; padding-top: 46px; }
    .ecosystem-copy { padding-bottom: 0; max-width: 680px; }
    .ecosystem-copy h1 { font-size: clamp(3.4rem, 8.5vw, 5rem); }
    .hero-intro { max-width: 450px; }
    .hero-domains { margin-top: 21px; max-width: none; }
    .ecosystem { width: 100%; max-width: 660px; justify-self: center; }
    .ecosystem-node { width: 150px; font-size: .7rem; }
    .hub-home .hub-container { grid-template-columns: 1fr; gap: 22px; }
    .hub-home .hub-sidebar { display: block; position: static; padding: 0; }
    .hub-home .hub-sidebar h3 { display: none; }
    .hub-home .filter-list { flex-direction: row; flex-wrap: wrap; gap: 6px; }
    .hub-home .filter-link { border: 1px solid #c5dd9126; padding: 12px; font-size: .72rem; }
    .hub-home .filter-link.active { border-color: #c5dd9160; }
    .hub-heading > p { display: none; }
    .hub-home footer .container { justify-content: center; }
}
@media (max-width: 600px) {
    .hub-home .container { padding-left: 22px; padding-right: 22px; }
    .hub-home header { padding: 14px 0; }
    .hub-home main { padding-top: 76px; }
    .hub-home .ecosystem-hero { padding-top: 34px; padding-bottom: 37px; gap: 35px; }
    .ecosystem-copy h1 { margin: 22px 0; font-size: clamp(2.9rem, 10.5vw, 4rem); }
    .eyebrow { font-size: .56rem; letter-spacing: .15em; }
    .hero-intro { font-size: .88rem; }
    .hero-domains { font-size: .6rem; gap: 8px; }
    .ecosystem-topline { font-size: .43rem; padding-bottom: 12px; }
    .ecosystem-topline > span:last-child { font-size: .43rem; }
    .ecosystem-stage { height: auto; padding-top: 280px; }
    .ecosystem-viewport { height: 280px; }
    .ecosystem-fallback::after { width: 85px; height: 85px; }
    .hub-illustration { width: 64px; height: 64px; }
    .ecosystem-nodes { position: relative; inset: auto; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; padding: 4px 0 18px; }
    .ecosystem-node { position: static; transform: none; width: auto; min-width: 0; min-height: 76px; padding: 12px 4px; gap: 7px; font-size: .6rem; border: 1px solid #c5dd9126; border-radius: 8px; background: #1c2518; }
    .ecosystem-node i { width: 24px; height: 24px; font-size: 1.05rem; }
    .ecosystem-node > span { padding: 0 2px; background: none; }
    .ecosystem-node small { display: none; }
    .ecosystem:not(.is-webgl) .ecosystem-node i::after { display: none; }
    .ecosystem-node[aria-pressed="true"] { border-color: #c5dd91; background: #2e3d22; }
    .ecosystem-node[aria-pressed="true"] > span { color: #f1f8e2; background: none; }
    .ecosystem-info { min-height: 235px; padding: 19px; }
    .ecosystem-detail-description { font-size: .74rem; }
    .ecosystem-detail-link { min-height: 44px; }
    .hub-heading .section-title { font-size: 1.55rem; }
    .app-count { margin-left: 8px; font-size: .6rem; }
    .hub-home .app-grid { grid-template-columns: 1fr; }
    .hub-home .app-header { flex-direction: row; align-items: center; gap: 17px; }
    .hub-home .app-card { padding: 25px; }
    .hub-home .app-card p { font-size: .84rem; }
}
@media (prefers-reduced-motion: reduce) {
    .ecosystem-viewport canvas, .ecosystem-fallback, .ecosystem-node { transition: none; }
}
