/* Public ConfaHub pages use this scoped layer instead of the legacy app-shell layout. */

.confahub-body.page-home,
.confahub-body.page-login,
.confahub-body.page-register,
.confahub-body.page-profile,
.confahub-body.page-not_found {
    --hub-ink: #f4f7ff;
    --hub-muted: #aab4d0;
    --hub-faint: #7681a5;
    --hub-panel: rgba(15, 22, 55, 0.72);
    --hub-panel-strong: #111b46;
    --hub-line: rgba(166, 184, 255, 0.17);
    --hub-line-strong: rgba(189, 202, 255, 0.32);
    --hub-violet: #7b66ff;
    --hub-blue: #66c8ff;
    --hub-mint: #74e4ca;
    --hub-shadow: 0 28px 80px rgba(1, 5, 27, 0.42);
    background:
        radial-gradient(circle at 8% 8%, rgba(89, 97, 255, 0.22), transparent 29rem),
        radial-gradient(circle at 95% 30%, rgba(66, 199, 255, 0.13), transparent 30rem),
        linear-gradient(145deg, #06091d 0%, #090d29 48%, #070b1e 100%);
    color: var(--hub-ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.confahub-body.page-home .site-ambience,
.confahub-body.page-login .site-ambience,
.confahub-body.page-register .site-ambience,
.confahub-body.page-profile .site-ambience,
.confahub-body.page-not_found .site-ambience {
    background:
        linear-gradient(rgba(126, 145, 255, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(126, 145, 255, 0.045) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: linear-gradient(to bottom, black, transparent 76%);
}

.confahub-body.page-home .site-ambience__glow,
.confahub-body.page-login .site-ambience__glow,
.confahub-body.page-register .site-ambience__glow,
.confahub-body.page-profile .site-ambience__glow,
.confahub-body.page-not_found .site-ambience__glow {
    opacity: 0.38;
    background: radial-gradient(circle, rgba(112, 104, 255, 0.5), transparent 68%);
}

.confahub-body.page-home .site-shell,
.confahub-body.page-login .site-shell,
.confahub-body.page-register .site-shell,
.confahub-body.page-profile .site-shell,
.confahub-body.page-not_found .site-shell {
    display: block;
    max-width: none;
    margin: 0;
    padding: 0;
}

.confahub-body.page-home .site-main,
.confahub-body.page-login .site-main,
.confahub-body.page-register .site-main,
.confahub-body.page-profile .site-main,
.confahub-body.page-not_found .site-main {
    max-width: none;
    min-width: 0;
}

.confahub-body.page-home .main-content,
.confahub-body.page-login .main-content,
.confahub-body.page-register .main-content,
.confahub-body.page-profile .main-content,
.confahub-body.page-not_found .main-content {
    display: block;
    padding-bottom: 0;
}

.skip-link {
    position: fixed;
    top: 0.75rem;
    left: 50%;
    z-index: 100;
    transform: translate(-50%, -160%);
    border: 1px solid var(--hub-line-strong);
    border-radius: 999px;
    padding: 0.65rem 1rem;
    background: #101a44;
    color: var(--hub-ink);
    transition: transform 160ms ease;
}

.skip-link:focus { transform: translate(-50%, 0); }

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.confahub-body.page-home :is(a, button, input, textarea, summary):focus-visible,
.confahub-body.page-login :is(a, button, input, textarea):focus-visible,
.confahub-body.page-register :is(a, button, input, textarea):focus-visible,
.confahub-body.page-profile :is(a, button, input, textarea):focus-visible,
.confahub-body.page-not_found :is(a, button):focus-visible {
    outline: 3px solid var(--hub-blue);
    outline-offset: 3px;
}

.hub-header {
    position: sticky;
    top: 0;
    z-index: 30;
    padding: 1rem 1.25rem;
    background: linear-gradient(to bottom, rgba(6, 9, 29, 0.94), rgba(6, 9, 29, 0.55), transparent);
    backdrop-filter: blur(12px);
}

.hub-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    width: min(1200px, 100%);
    min-height: 3.75rem;
    margin: 0 auto;
    padding: 0.55rem 0.7rem 0.55rem 1rem;
    border: 1px solid var(--hub-line);
    border-radius: 1.25rem;
    background: rgba(10, 16, 46, 0.76);
    box-shadow: 0 14px 36px rgba(1, 5, 28, 0.24), inset 0 1px rgba(255, 255, 255, 0.05);
}

.hub-header .brand-logo {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    gap: 0.55rem;
    font-size: 1.12rem;
}

.hub-header .brand-logo__avatar {
    width: 2rem;
    height: 2rem;
    border: 1px solid rgba(185, 205, 255, 0.32);
    box-shadow: none;
}

.hub-header .brand-logo__word { color: var(--hub-ink); }
.hub-header .brand-logo__suffix { color: var(--hub-blue); }
.hub-header .brand-logo__spark { display: none; }

.hub-header__nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.15rem;
    min-width: 0;
}

.hub-header__nav a,
.hub-header__login,
.hub-header__profile {
    border-radius: 0.7rem;
    color: var(--hub-muted);
    font-size: 0.88rem;
    font-weight: 650;
    transition: background-color 160ms ease, color 160ms ease;
}

.hub-header__nav a { padding: 0.55rem 0.7rem; }
.hub-header__nav a:hover,
.hub-header__login:hover,
.hub-header__profile:hover { color: var(--hub-ink); background: rgba(123, 102, 255, 0.13); }

.hub-header__actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.45rem;
    flex: 0 0 auto;
}

.hub-header__login { padding: 0.55rem 0.7rem; }
.hub-header__cta-short { display: none; }

.hub-header__profile {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    max-width: 10rem;
    padding: 0.35rem 0.5rem 0.35rem 0.35rem;
    overflow: hidden;
}

.hub-header__profile span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.hub-header__avatar {
    width: 1.8rem;
    height: 1.8rem;
    flex: 0 0 auto;
    border-radius: 50%;
    object-fit: cover;
}

.hub-menu-button,
.hub-drawer__close {
    display: none;
    place-items: center;
    width: 2.7rem;
    height: 2.7rem;
    border: 1px solid var(--hub-line);
    border-radius: 0.8rem;
    background: rgba(255, 255, 255, 0.04);
    color: var(--hub-ink);
}

.hub-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.7rem;
    border: 1px solid transparent;
    border-radius: 0.82rem;
    padding: 0.65rem 0.95rem;
    color: var(--hub-ink);
    font-size: 0.9rem;
    font-weight: 750;
    line-height: 1.2;
    text-align: center;
    transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.hub-button:hover { transform: translateY(-1px); }
.hub-button.is-loading { cursor: wait; opacity: 0.68; }

.hub-button--primary {
    background: linear-gradient(135deg, #8470ff, #5dbdf7);
    box-shadow: 0 12px 28px rgba(103, 101, 255, 0.27);
}

.hub-button--primary:hover { box-shadow: 0 16px 36px rgba(103, 101, 255, 0.38); }

.hub-button--quiet {
    border-color: var(--hub-line);
    background: rgba(255, 255, 255, 0.045);
    color: var(--hub-ink);
}

.hub-button--quiet:hover { border-color: var(--hub-line-strong); background: rgba(122, 102, 255, 0.13); }
.hub-button--large { min-height: 3.35rem; padding-inline: 1.25rem; }
.hub-button--form { width: 100%; min-height: 3.15rem; }
.hub-button--text { min-height: auto; padding: 0.4rem 0; color: var(--hub-muted); }
.hub-button--text:hover { color: var(--hub-ink); }
.hub-button--danger { min-height: auto; padding: 0.4rem 0; color: #ff9aa9; }
.hub-button--danger:hover { color: #ffd0d7; }

.hub-eyebrow {
    margin: 0 0 0.75rem;
    color: var(--hub-blue);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    line-height: 1.2;
    text-transform: uppercase;
}

.hub-hero,
.hub-products,
.hub-identity,
.hub-story,
.hub-transparency,
.hub-community,
.hub-roadmap,
.hub-faq,
.hub-footer,
.hub-profile,
.hub-not-found,
.identity-auth {
    width: min(1200px, calc(100% - 2.5rem));
    margin-inline: auto;
}

.hub-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(23rem, 0.98fr);
    gap: clamp(2rem, 5vw, 5rem);
    margin-top: clamp(1.5rem, 4vw, 4rem);
    padding: clamp(2rem, 5vw, 5.2rem);
    border: 1px solid var(--hub-line);
    border-radius: 2rem;
    background:
        radial-gradient(circle at 78% 30%, rgba(112, 103, 255, 0.27), transparent 26rem),
        linear-gradient(135deg, rgba(26, 36, 92, 0.88), rgba(12, 19, 53, 0.78));
    box-shadow: var(--hub-shadow), inset 0 1px rgba(255, 255, 255, 0.06);
    overflow: hidden;
}

.hub-hero__copy { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; min-width: 0; }

.hub-hero h1,
.hub-section-heading h2,
.hub-identity h2,
.hub-community h2,
.hub-roadmap h2,
.hub-footer h2,
.identity-auth h1,
.hub-profile h1,
.hub-not-found h1 {
    margin: 0;
    color: var(--hub-ink);
    font-weight: 760;
    letter-spacing: -0.055em;
    line-height: 0.99;
    text-wrap: balance;
}

.hub-hero h1 { max-width: 11ch; font-size: clamp(2.7rem, 5.2vw, 4.7rem); }

.hub-hero__lede {
    max-width: 37rem;
    margin: 1.4rem 0 0;
    color: var(--hub-muted);
    font-size: clamp(1rem, 1.15vw, 1.18rem);
    line-height: 1.7;
}

.hub-hero__actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 2rem; }
.hub-hero__note { max-width: 34rem; margin: 1.15rem 0 0; color: var(--hub-faint); font-size: 0.84rem; line-height: 1.5; }

.hub-hero__visual { display: grid; align-content: center; min-width: 0; }

.ecosystem-scene {
    position: relative;
    min-height: clamp(23rem, 35vw, 29rem);
    border: 1px solid rgba(157, 180, 255, 0.2);
    border-radius: 1.5rem;
    background:
        radial-gradient(circle at 50% 50%, rgba(105, 189, 255, 0.14), transparent 23%),
        radial-gradient(circle at 50% 50%, rgba(125, 101, 255, 0.18), transparent 52%),
        rgba(3, 8, 34, 0.44);
    overflow: hidden;
}

.ecosystem-scene::before,
.ecosystem-scene::after {
    position: absolute;
    inset: 50% auto auto 50%;
    width: 0.35rem;
    height: 0.35rem;
    border-radius: 50%;
    background: var(--hub-blue);
    box-shadow: 5rem -8rem 0 -0.06rem rgba(102, 200, 255, 0.66), -7rem 7rem 0 -0.06rem rgba(116, 228, 202, 0.66), 8rem 8rem 0 -0.06rem rgba(132, 112, 255, 0.66);
    content: "";
}

.ecosystem-scene::before { transform: translate(-50%, -50%); }
.ecosystem-scene::after { top: 14%; left: 18%; opacity: 0.45; box-shadow: 14rem 4rem 0 -0.08rem rgba(102, 200, 255, 0.62), 4rem 16rem 0 -0.08rem rgba(132, 112, 255, 0.62); }

.ecosystem-scene__orbit {
    position: absolute;
    top: 50%;
    left: 50%;
    border: 1px solid rgba(145, 166, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.ecosystem-scene__orbit--outer { width: min(84%, 24rem); aspect-ratio: 1; }
.ecosystem-scene__orbit--inner { width: min(57%, 16rem); aspect-ratio: 1; border-color: rgba(102, 200, 255, 0.24); }

.ecosystem-scene__line {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 27%;
    height: 1px;
    transform-origin: left center;
    background: linear-gradient(to right, rgba(117, 107, 255, 0.58), transparent);
}

.ecosystem-scene__line--messenger { transform: rotate(-147deg); }
.ecosystem-scene__line--files { transform: rotate(-23deg); }
.ecosystem-scene__line--vpn { transform: rotate(101deg); }

.ecosystem-core {
    position: absolute;
    top: 50%;
    left: 50%;
    display: grid;
    place-items: center;
    width: 7rem;
    aspect-ratio: 1;
    transform: translate(-50%, -50%);
    border: 1px solid rgba(202, 217, 255, 0.36);
    border-radius: 1.5rem;
    background: linear-gradient(145deg, rgba(117, 104, 255, 0.86), rgba(52, 91, 177, 0.94));
    box-shadow: 0 0 0 0.75rem rgba(100, 116, 255, 0.09), 0 22px 44px rgba(1, 7, 38, 0.46);
}

.ecosystem-core img { width: 3.2rem; height: 3.2rem; border-radius: 1rem; }
.ecosystem-core span { margin-top: -0.75rem; color: white; font-size: 0.75rem; font-weight: 800; }

.ecosystem-node {
    position: absolute;
    display: grid;
    grid-template-columns: 2.6rem auto;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.65rem 0.45rem 0.45rem;
    border: 1px solid rgba(159, 180, 255, 0.24);
    border-radius: 1rem;
    background: rgba(15, 24, 65, 0.88);
    box-shadow: 0 14px 30px rgba(1, 5, 29, 0.35);
    color: var(--hub-ink);
    font-size: 0.8rem;
    font-weight: 760;
    text-align: left;
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.ecosystem-node img { width: 2.6rem; height: 2.6rem; border-radius: 0.7rem; object-fit: cover; }
.ecosystem-node:hover,
.ecosystem-node.is-active { transform: translateY(-3px); border-color: var(--hub-blue); box-shadow: 0 0 0 3px rgba(102, 200, 255, 0.12), 0 18px 36px rgba(1, 5, 29, 0.45); }
.ecosystem-node--messenger { top: 13%; left: 9%; }
.ecosystem-node--files { top: 20%; right: 5%; }
.ecosystem-node--vpn { bottom: 13%; left: 13%; }

.ecosystem-scene__hint { margin: 0.8rem 0 0; color: var(--hub-faint); font-size: 0.8rem; text-align: center; }

.hub-proof {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    overflow: hidden;
    border: 1px solid var(--hub-line);
    border-radius: 1rem;
    background: var(--hub-line);
}

.hub-proof__item { min-height: 5.6rem; padding: 1rem 1.15rem; background: rgba(10, 16, 47, 0.78); }
.hub-proof__item strong { display: block; color: var(--hub-ink); font-size: 1.15rem; letter-spacing: -0.035em; }
.hub-proof__item span { display: block; margin-top: 0.25rem; color: var(--hub-muted); font-size: 0.78rem; line-height: 1.35; }

.hub-products,
.hub-identity,
.hub-story,
.hub-transparency,
.hub-community,
.hub-roadmap,
.hub-faq { margin-top: clamp(5rem, 10vw, 9rem); }

.hub-section-heading { max-width: 47rem; }
.hub-section-heading h2 { font-size: clamp(2.15rem, 4vw, 4rem); }
.hub-section-heading > p:last-child { margin: 1rem 0 0; color: var(--hub-muted); font-size: 1rem; line-height: 1.7; }

.hub-product-tabs {
    display: flex;
    gap: 0.55rem;
    margin-top: 2.15rem;
    overflow-x: auto;
    padding-bottom: 0.35rem;
    scrollbar-width: thin;
}

.hub-product-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    flex: 1 0 11rem;
    min-height: 4.3rem;
    padding: 0.55rem 0.75rem;
    border: 1px solid var(--hub-line);
    border-radius: 1rem;
    background: rgba(14, 21, 56, 0.53);
    color: var(--hub-muted);
    font-size: 0.92rem;
    font-weight: 760;
    text-align: left;
    transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease;
}

.hub-product-tab img { width: 2.25rem; height: 2.25rem; border-radius: 0.7rem; object-fit: cover; }
.hub-product-tab:hover,
.hub-product-tab.is-active { border-color: rgba(104, 198, 255, 0.56); background: rgba(95, 104, 255, 0.16); color: var(--hub-ink); }

.hub-product-panels { margin-top: 1rem; }

.hub-product-panel {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(20rem, 1.05fr);
    gap: clamp(2rem, 6vw, 6rem);
    align-items: center;
    min-height: 29rem;
    padding: clamp(1.5rem, 4vw, 3.5rem);
    border: 1px solid var(--hub-line);
    border-radius: 1.65rem;
    background: linear-gradient(140deg, rgba(24, 35, 88, 0.72), rgba(10, 16, 46, 0.75));
    box-shadow: var(--hub-shadow);
}

.hub-product-panel__identity { display: flex; align-items: center; gap: 0.9rem; }
.hub-product-panel__identity img { border-radius: 1rem; object-fit: cover; }
.hub-product-panel__identity .hub-eyebrow { margin-bottom: 0.3rem; }
.hub-product-panel__identity h3 { margin: 0; color: var(--hub-ink); font-size: clamp(2rem, 3vw, 3rem); letter-spacing: -0.05em; }
.hub-product-panel__description { max-width: 31rem; margin: 1.25rem 0 0; color: var(--hub-muted); font-size: 1.05rem; line-height: 1.7; }

.hub-product-panel__facts { display: grid; gap: 0.7rem; padding: 0; margin: 1.5rem 0 1.8rem; list-style: none; }
.hub-product-panel__facts li { display: flex; align-items: center; gap: 0.6rem; color: var(--hub-ink); font-size: 0.9rem; }
.hub-product-panel__facts .icon { width: 1.1rem; height: 1.1rem; color: var(--hub-mint); }

.hub-product-preview { display: grid; place-items: center; min-height: 22rem; border-radius: 1.2rem; overflow: hidden; }
.hub-product-preview--messenger { background: radial-gradient(circle at 70% 16%, rgba(120, 103, 255, 0.26), transparent 40%), #0a1235; }
.hub-product-preview--files { background: radial-gradient(circle at 20% 75%, rgba(104, 200, 255, 0.25), transparent 40%), #0a1635; }
.hub-product-preview--vpn { background: radial-gradient(circle at 78% 20%, rgba(116, 228, 202, 0.2), transparent 42%), #091b32; }

.preview-window { width: min(84%, 22rem); min-height: 17rem; padding: 1.25rem; border: 1px solid rgba(187, 205, 255, 0.26); border-radius: 1.15rem; background: rgba(6, 12, 40, 0.72); box-shadow: 0 25px 55px rgba(0, 3, 21, 0.34); }
.preview-window__bar { display: flex; gap: 0.35rem; margin-bottom: 1.6rem; }
.preview-window__bar span { width: 0.45rem; height: 0.45rem; border-radius: 50%; background: rgba(177, 194, 255, 0.38); }
.preview-message { width: fit-content; max-width: 78%; margin: 0.65rem 0; padding: 0.65rem 0.75rem; border-radius: 0.75rem; font-size: 0.78rem; line-height: 1.35; }
.preview-message--incoming { background: rgba(128, 144, 220, 0.19); color: #dbe4ff; }
.preview-message--outgoing { margin-left: auto; background: rgba(112, 102, 255, 0.57); color: white; }
.preview-composer { display: flex; gap: 0.35rem; align-items: center; margin-top: 1.25rem; padding: 0.6rem; border: 1px solid rgba(187, 205, 255, 0.18); border-radius: 0.75rem; }
.preview-composer span { width: 0.4rem; height: 0.4rem; border-radius: 50%; background: rgba(187, 205, 255, 0.45); }

.preview-window--files p,
.preview-window--vpn > p { margin: 0 0 1.25rem; color: #dce7ff; font-size: 0.82rem; font-weight: 780; }
.preview-file { display: flex; align-items: center; gap: 0.7rem; padding: 0.7rem; border-radius: 0.75rem; background: rgba(126, 175, 255, 0.12); }
.preview-file span { padding: 0.35rem; border-radius: 0.45rem; background: rgba(100, 199, 255, 0.22); color: var(--hub-blue); font-size: 0.7rem; font-weight: 800; }
.preview-file strong { color: var(--hub-ink); font-size: 0.78rem; }
.preview-flow { display: flex; align-items: center; justify-content: center; gap: 0.65rem; padding: 1.45rem 0; color: var(--hub-blue); }
.preview-flow b { padding: 0.55rem 0.7rem; border: 1px solid rgba(104, 200, 255, 0.3); border-radius: 0.6rem; color: var(--hub-ink); font-size: 0.76rem; }
.preview-flow .icon { width: 1rem; }
.preview-progress { height: 0.35rem; overflow: hidden; border-radius: 99px; background: rgba(187, 205, 255, 0.16); }
.preview-progress span { display: block; width: 74%; height: 100%; border-radius: inherit; background: linear-gradient(to right, var(--hub-blue), var(--hub-mint)); }
.preview-window--files small { display: block; margin-top: 0.8rem; color: var(--hub-mint); font-size: 0.72rem; }

.preview-vpn-row { display: grid; grid-template-columns: 1rem 1fr auto; gap: 0.55rem; align-items: center; margin-top: 0.7rem; padding: 0.75rem; border: 1px solid rgba(168, 235, 219, 0.14); border-radius: 0.75rem; background: rgba(74, 182, 172, 0.08); }
.preview-vpn-row__dot { width: 0.55rem; height: 0.55rem; border-radius: 50%; background: var(--hub-mint); box-shadow: 0 0 0 0.25rem rgba(116, 228, 202, 0.12); }
.preview-vpn-row__key { color: var(--hub-mint); font-weight: 800; }
.preview-vpn-row strong { color: var(--hub-ink); font-size: 0.78rem; }
.preview-vpn-row small { color: var(--hub-faint); font-size: 0.65rem; }
.preview-vpn-action { margin-top: 1.25rem; padding: 0.7rem; border-radius: 0.7rem; background: rgba(116, 228, 202, 0.17); color: #d5fff4; font-size: 0.76rem; font-weight: 750; text-align: center; }

.hub-product-noscript { margin-top: 1rem; color: var(--hub-muted); }
.hub-product-noscript a { color: var(--hub-blue); }

.hub-identity {
    display: grid;
    grid-template-columns: minmax(16rem, 0.66fr) minmax(0, 1.34fr);
    gap: clamp(2rem, 8vw, 8rem);
    align-items: center;
    padding: clamp(1.75rem, 5vw, 4.5rem);
    border: 1px solid var(--hub-line);
    border-radius: 1.8rem;
    background: linear-gradient(120deg, rgba(70, 75, 189, 0.24), rgba(11, 18, 50, 0.76));
}

.hub-identity__mark { position: relative; display: grid; place-items: center; min-height: 17rem; }
.hub-identity__mark::before,
.hub-identity__mark::after { position: absolute; border: 1px solid rgba(157, 180, 255, 0.25); border-radius: 50%; content: ""; }
.hub-identity__mark::before { width: 14rem; height: 14rem; }
.hub-identity__mark::after { width: 9rem; height: 9rem; border-color: rgba(102, 200, 255, 0.33); }
.hub-identity__mark img { position: relative; z-index: 1; width: 6rem; height: 6rem; border-radius: 1.55rem; box-shadow: 0 18px 40px rgba(3, 7, 35, 0.42); }
.hub-identity h2 { font-size: clamp(2.25rem, 4vw, 3.8rem); }
.hub-identity__copy > p:not(.hub-eyebrow) { max-width: 42rem; margin: 1rem 0 0; color: var(--hub-muted); line-height: 1.7; }
.hub-identity__facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.6rem; margin: 1.7rem 0; }
.hub-identity__facts > div { padding: 0.85rem; border: 1px solid rgba(159, 180, 255, 0.14); border-radius: 0.85rem; background: rgba(255, 255, 255, 0.035); }
.hub-identity__facts strong { display: block; color: var(--hub-ink); font-size: 0.78rem; }
.hub-identity__facts span { display: block; margin-top: 0.3rem; color: var(--hub-faint); font-size: 0.72rem; line-height: 1.35; }

.hub-story { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(2rem, 7vw, 7rem); align-items: start; }
.hub-story__steps { display: grid; gap: 0.75rem; padding: 0; margin: 0; list-style: none; }
.hub-story__steps li { display: grid; grid-template-columns: 3.4rem 1fr; gap: 1rem; padding: 1.1rem; border-bottom: 1px solid var(--hub-line); }
.hub-story__number { color: var(--hub-blue); font-size: 0.78rem; font-weight: 800; letter-spacing: 0.08em; }
.hub-story h3 { margin: 0; color: var(--hub-ink); font-size: 1.05rem; letter-spacing: -0.025em; }
.hub-story p { margin: 0.45rem 0 0; color: var(--hub-muted); font-size: 0.9rem; line-height: 1.6; }

.hub-transparency { padding: clamp(1.5rem, 4vw, 3.5rem); border: 1px solid var(--hub-line); border-radius: 1.8rem; background: rgba(10, 17, 49, 0.62); }
.hub-transparency__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 2.25rem; }
.hub-transparency__grid article { padding: 1.15rem; border: 1px solid rgba(159, 180, 255, 0.14); border-radius: 1rem; background: rgba(255, 255, 255, 0.03); }
.hub-transparency__icon { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 0.75rem; background: rgba(103, 112, 255, 0.17); color: var(--hub-blue); }
.hub-transparency__icon .icon { width: 1.25rem; height: 1.25rem; }
.hub-transparency h3 { margin: 1rem 0 0; color: var(--hub-ink); font-size: 1rem; }
.hub-transparency__grid p { margin: 0.55rem 0 0; color: var(--hub-muted); font-size: 0.86rem; line-height: 1.6; }

.hub-community { display: grid; grid-template-columns: minmax(0, 0.82fr) minmax(18rem, 1.18fr); gap: clamp(2rem, 7vw, 7rem); align-items: center; padding: clamp(1.5rem, 5vw, 4rem); border-radius: 1.8rem; background: linear-gradient(135deg, rgba(96, 88, 218, 0.26), rgba(12, 29, 61, 0.75)); }
.hub-community h2 { font-size: clamp(2.25rem, 4vw, 3.8rem); }
.hub-community__copy > p:not(.hub-eyebrow) { margin: 1rem 0 0; color: var(--hub-muted); line-height: 1.65; }
.hub-community__links { display: grid; gap: 0.55rem; }
.hub-community__link { display: grid; grid-template-columns: 1.5rem 1fr 1.2rem; align-items: center; gap: 0.75rem; min-height: 3.9rem; padding: 0.8rem 0.95rem; border: 1px solid rgba(194, 208, 255, 0.17); border-radius: 0.95rem; background: rgba(6, 12, 43, 0.45); color: var(--hub-ink); font-size: 0.92rem; font-weight: 680; transition: border-color 160ms ease, transform 160ms ease, background-color 160ms ease; }
.hub-community__link:hover { transform: translateX(3px); border-color: var(--hub-blue); background: rgba(102, 200, 255, 0.1); }
.hub-community__link .icon:last-child { justify-self: end; color: var(--hub-blue); }
.hub-community__link--support { border-color: rgba(116, 228, 202, 0.27); }

.hub-roadmap { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1.25rem; align-items: center; max-width: 52rem; padding: 1.25rem 0; }
.hub-roadmap__icon { display: grid; place-items: center; width: 5rem; height: 5rem; border: 1px solid var(--hub-line); border-radius: 1.25rem; background: rgba(123, 102, 255, 0.1); }
.hub-roadmap__icon img { border-radius: 0.9rem; object-fit: cover; }
.hub-roadmap h2 { font-size: clamp(1.7rem, 3vw, 2.55rem); }
.hub-roadmap p:not(.hub-eyebrow) { margin: 0.8rem 0 0; color: var(--hub-muted); line-height: 1.6; }

.hub-faq { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(2rem, 7vw, 7rem); align-items: start; }
.hub-faq__items { display: grid; gap: 0.65rem; }
.hub-faq details { border-bottom: 1px solid var(--hub-line); color: var(--hub-ink); }
.hub-faq summary { position: relative; padding: 1rem 2rem 1rem 0; color: var(--hub-ink); font-size: 1rem; font-weight: 700; cursor: pointer; list-style: none; }
.hub-faq summary::-webkit-details-marker { display: none; }
.hub-faq summary::after { position: absolute; top: 1rem; right: 0.25rem; color: var(--hub-blue); content: "+"; font-size: 1.3rem; font-weight: 400; }
.hub-faq details[open] summary::after { content: "−"; }
.hub-faq details p { max-width: 40rem; margin: 0 0 1rem; color: var(--hub-muted); font-size: 0.9rem; line-height: 1.65; }

.hub-footer { margin-top: clamp(5rem, 10vw, 9rem); padding-bottom: 1.5rem; }
.hub-footer__cta { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: clamp(1.5rem, 5vw, 3.8rem); border: 1px solid rgba(172, 191, 255, 0.24); border-radius: 1.8rem; background: linear-gradient(135deg, rgba(117, 103, 255, 0.36), rgba(60, 145, 220, 0.3)); }
.hub-footer h2 { max-width: 18ch; font-size: clamp(2rem, 4vw, 3.6rem); }
.hub-footer__bottom { display: flex; align-items: center; justify-content: space-between; gap: 1.2rem; padding: 1.5rem 0 0; }
.hub-footer__brand { color: var(--hub-ink); font-size: 1.1rem; font-weight: 800; letter-spacing: -0.05em; }
.hub-footer__brand span { color: var(--hub-blue); }
.hub-footer__bottom nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0.8rem 1.1rem; }
.hub-footer__bottom nav a { color: var(--hub-muted); font-size: 0.82rem; }
.hub-footer__bottom nav a:hover { color: var(--hub-ink); }

.identity-auth { display: grid; grid-template-columns: minmax(0, 1fr) minmax(21rem, 0.86fr); gap: clamp(2rem, 8vw, 8rem); align-items: center; min-height: calc(100vh - 9rem); padding: clamp(2rem, 7vw, 7rem) 0; }
.identity-auth__intro { max-width: 38rem; }
.identity-auth h1 { font-size: clamp(2.65rem, 5vw, 5.1rem); }
.identity-auth__intro > p:not(.hub-eyebrow) { margin: 1.35rem 0 0; color: var(--hub-muted); font-size: 1.05rem; line-height: 1.7; }
.identity-auth__services { display: flex; flex-wrap: wrap; gap: 0.55rem; margin-top: 1.75rem; }
.identity-auth__services span { display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.45rem 0.6rem; border: 1px solid var(--hub-line); border-radius: 0.75rem; background: rgba(255, 255, 255, 0.03); color: var(--hub-muted); font-size: 0.78rem; font-weight: 680; }
.identity-auth__services img { border-radius: 0.45rem; object-fit: cover; }
.identity-auth__card { padding: clamp(1.35rem, 4vw, 2.5rem); border: 1px solid var(--hub-line); border-radius: 1.45rem; background: rgba(12, 19, 54, 0.84); box-shadow: var(--hub-shadow); }
.identity-auth__card h2 { margin: 0; color: var(--hub-ink); font-size: clamp(1.65rem, 3vw, 2.35rem); letter-spacing: -0.045em; }
.identity-auth__description { margin: 0.65rem 0 1.4rem; color: var(--hub-muted); line-height: 1.6; }
.identity-auth__form { display: grid; gap: 0.85rem; }
.identity-auth__card .auth-field { display: grid; gap: 0.45rem; color: var(--hub-muted); font-size: 0.78rem; font-weight: 700; }
.identity-auth__card .auth-field input { width: 100%; min-height: 3rem; border: 1px solid var(--hub-line); border-radius: 0.75rem; padding: 0.7rem 0.8rem; background: rgba(4, 9, 34, 0.56); color: var(--hub-ink); }
.identity-auth__card .auth-field input::placeholder { color: #647096; }
.identity-auth__google { display: flex; align-items: center; justify-content: center; gap: 0.65rem; min-height: 3rem; border: 1px solid var(--hub-line); border-radius: 0.75rem; color: var(--hub-ink); font-size: 0.88rem; font-weight: 700; }
.identity-auth__google:hover { border-color: var(--hub-line-strong); background: rgba(255, 255, 255, 0.05); }
.identity-auth__google > span:first-child { display: grid; place-items: center; width: 1.25rem; height: 1.25rem; border-radius: 50%; background: #fff; color: #23306b; font-size: 0.72rem; font-weight: 850; }
.identity-auth__divider { display: flex; align-items: center; gap: 0.75rem; margin: 1rem 0; color: var(--hub-faint); font-size: 0.72rem; }
.identity-auth__divider::before,
.identity-auth__divider::after { flex: 1; height: 1px; background: var(--hub-line); content: ""; }
.identity-auth__switch { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.35rem 0.75rem; margin-top: 1.3rem; color: var(--hub-muted); font-size: 0.83rem; }
.identity-auth__switch a { color: var(--hub-blue); font-weight: 750; }
.identity-auth__meta { margin: 1rem 0 0; color: var(--hub-faint); font-size: 0.72rem; line-height: 1.55; }
.identity-auth__blocked-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; }

.form-notice { margin: 0 0 1rem; padding: 0.75rem 0.85rem; border: 1px solid rgba(114, 228, 202, 0.28); border-radius: 0.75rem; background: rgba(87, 191, 165, 0.09); color: #c8fff0; font-size: 0.82rem; line-height: 1.45; }
.form-notice[data-tone="error"] { border-color: rgba(255, 152, 171, 0.35); background: rgba(193, 68, 97, 0.11); color: #ffd8e0; }

.hub-profile { min-height: calc(100vh - 8rem); padding: clamp(2rem, 6vw, 5.5rem) 0; }
.hub-profile__heading { max-width: 42rem; }
.hub-profile h1 { font-size: clamp(2.5rem, 5vw, 4.7rem); }
.hub-profile__heading > p:not(.hub-eyebrow),
.hub-profile--guest > p:not(.hub-eyebrow) { margin: 1rem 0 0; color: var(--hub-muted); line-height: 1.65; }
.hub-profile__card { display: grid; grid-template-columns: minmax(8rem, 0.28fr) minmax(0, 0.72fr); gap: clamp(1.4rem, 5vw, 4rem); max-width: 54rem; margin-top: 2.2rem; padding: clamp(1.25rem, 4vw, 2.5rem); border: 1px solid var(--hub-line); border-radius: 1.5rem; background: rgba(12, 19, 54, 0.84); box-shadow: var(--hub-shadow); }
.hub-profile__card > .form-notice { grid-column: 1 / -1; }
.hub-profile__form { display: contents; }
.hub-profile__form .profile-avatar-section { grid-row: span 5; align-self: start; }
.hub-profile__form .profile-field { display: grid; gap: 0.45rem; color: var(--hub-muted); font-size: 0.78rem; font-weight: 700; }
.hub-profile__form .profile-field input,
.hub-profile__form .profile-field textarea { width: 100%; border: 1px solid var(--hub-line); border-radius: 0.75rem; padding: 0.7rem 0.8rem; background: rgba(4, 9, 34, 0.56); color: var(--hub-ink); resize: vertical; }
.hub-profile__form .profile-field-hint { color: var(--hub-faint); font-size: 0.7rem; font-weight: 500; }
.hub-profile__form [data-profile-submit] { grid-column: 2; }
.hub-profile__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.7rem 1rem; margin-top: 1.4rem; }
.hub-profile__card > .hub-profile__actions { grid-column: 1 / -1; }
.hub-profile--guest { max-width: 44rem; }
.hub-profile--guest .hub-profile__actions { margin-top: 1.8rem; }

.hub-not-found { display: grid; place-items: start; align-content: center; min-height: calc(100vh - 9rem); max-width: 46rem; padding: 4rem 0; }
.hub-not-found h1 { font-size: clamp(3rem, 7vw, 6rem); }
.hub-not-found > p:not(.hub-eyebrow) { max-width: 31rem; margin: 1.1rem 0 0; color: var(--hub-muted); font-size: 1.05rem; line-height: 1.65; }
.hub-not-found__actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.8rem; }

.mobile-drawer[hidden],
.email-verify-modal[hidden] { display: none !important; }

.mobile-drawer {
    position: fixed;
    z-index: 80;
    inset: 0;
    display: block;
    background: transparent;
    opacity: 0;
    pointer-events: none;
    transition: opacity 220ms ease;
}

.mobile-drawer.is-open { opacity: 1; pointer-events: auto; }
.mobile-drawer__backdrop { position: absolute; inset: 0; background: rgba(1, 5, 25, 0.72); backdrop-filter: blur(4px); }
.hub-drawer__panel { position: relative; z-index: 1; display: flex; flex-direction: column; width: min(25rem, calc(100vw - 2.25rem)); height: 100%; min-height: 0; margin-left: auto; padding: 1rem; overflow-y: auto; overscroll-behavior: contain; border-left: 1px solid var(--hub-line); background: #0b1234; transform: translateX(100%); transition: transform 220ms ease; }
.mobile-drawer.is-open .hub-drawer__panel { transform: translateX(0); }
.hub-drawer__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.hub-drawer__head .brand-logo { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--hub-ink); }
.hub-drawer__head .brand-logo__avatar { width: 2rem; height: 2rem; }
.hub-drawer__head .brand-logo__spark { display: none; }
.hub-drawer__close { display: grid; }
.hub-drawer__nav { display: grid; gap: 0.15rem; margin-top: 2rem; }
.hub-drawer__nav a { padding: 0.9rem 0.7rem; border-radius: 0.7rem; color: var(--hub-ink); font-size: 1rem; font-weight: 700; }
.hub-drawer__nav a:hover { background: rgba(123, 102, 255, 0.14); }
.hub-drawer__services { display: grid; gap: 0.45rem; margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--hub-line); }
.hub-drawer__service { display: grid; grid-template-columns: 2.5rem 1fr 1.2rem; gap: 0.65rem; align-items: center; padding: 0.6rem; border: 1px solid transparent; border-radius: 0.75rem; color: var(--hub-ink); }
.hub-drawer__service:hover { border-color: var(--hub-line); background: rgba(255, 255, 255, 0.035); }
.hub-drawer__service img { border-radius: 0.65rem; object-fit: cover; }
.hub-drawer__service strong,
.hub-drawer__service small { display: block; }
.hub-drawer__service strong { font-size: 0.85rem; }
.hub-drawer__service small { margin-top: 0.15rem; color: var(--hub-faint); font-size: 0.68rem; }
.hub-drawer__service .icon { justify-self: end; color: var(--hub-blue); }
.hub-drawer__footer { display: grid; gap: 0.6rem; margin-top: auto; padding-top: 1.5rem; }
.hub-drawer__login { color: var(--hub-muted); font-size: 0.85rem; font-weight: 700; text-align: center; }

.email-verify-modal { position: fixed; z-index: 90; inset: 0; display: grid; place-items: center; padding: 1rem; }
.email-verify-modal__backdrop { position: absolute; inset: 0; background: rgba(1, 5, 27, 0.76); backdrop-filter: blur(6px); }
.email-verify-modal__card { position: relative; z-index: 1; width: min(32rem, 100%); max-height: calc(100vh - 2rem); overflow: auto; border: 1px solid var(--hub-line-strong); border-radius: 1.25rem; padding: clamp(1.25rem, 4vw, 2rem); background: #101943; box-shadow: var(--hub-shadow); }
.email-verify-modal__card h2 { margin: 0; color: var(--hub-ink); font-size: 1.6rem; letter-spacing: -0.04em; }
.email-verify-modal__text,
.email-verify-modal__meta { color: var(--hub-muted); line-height: 1.55; }
.email-verify-modal__row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.6rem; margin-top: 1.1rem; }
.email-verify-modal__row input { min-width: 0; border: 1px solid var(--hub-line); border-radius: 0.75rem; padding: 0.7rem 0.8rem; background: rgba(4, 9, 34, 0.56); color: var(--hub-ink); }
.email-verify-modal__error { margin: 0.8rem 0 0; color: #ffb0bf; font-size: 0.82rem; }
.email-verify-modal__actions { display: flex; flex-wrap: wrap; gap: 0.5rem 0.8rem; margin-top: 1rem; }
.email-verify-modal__actions .text-link { color: var(--hub-blue); }

@media (max-width: 980px) {
    .hub-header__nav { display: none; }
    .hub-menu-button { display: grid; }
    .hub-hero { grid-template-columns: 1fr; }
    .hub-hero h1 { max-width: 12ch; }
    .hub-hero__visual { max-width: 38rem; width: 100%; margin-inline: auto; }
    .hub-product-panel { grid-template-columns: 1fr; }
    .hub-product-preview { min-height: 18rem; }
    .hub-identity,
    .hub-community,
    .hub-story,
    .hub-faq { grid-template-columns: 1fr; }
    .hub-identity__mark { min-height: 11rem; }
    .hub-identity__facts,
    .hub-transparency__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .identity-auth { grid-template-columns: 1fr; max-width: 42rem; }
    .identity-auth__intro { max-width: none; }
}

@media (max-width: 680px) {
    .hub-header { padding: 0.65rem 0.75rem; }
    .hub-header__inner { min-height: 3.25rem; gap: 0.55rem; padding: 0.4rem 0.45rem 0.4rem 0.7rem; border-radius: 1rem; }
    .hub-header .brand-logo { font-size: 1rem; }
    .hub-header .brand-logo__avatar { width: 1.75rem; height: 1.75rem; }
    .hub-header__login,
    .hub-header__profile span { display: none; }
    .hub-header__actions { gap: 0.25rem; }
    .hub-header__cta-label { display: none; }
    .hub-header__cta-short { display: inline; }
    .hub-header__actions > .hub-button { min-height: 2.45rem; padding-inline: 0.65rem; font-size: 0.78rem; }
    .hub-header__profile { padding: 0.25rem; }
    .hub-header__avatar { width: 1.85rem; height: 1.85rem; }
    .hub-menu-button { width: 2.45rem; height: 2.45rem; }
    .hub-hero,
    .hub-products,
    .hub-identity,
    .hub-story,
    .hub-transparency,
    .hub-community,
    .hub-roadmap,
    .hub-faq,
    .hub-footer,
    .hub-profile,
    .hub-not-found,
    .identity-auth { width: min(100% - 1.25rem, 1200px); }
    .hub-hero { gap: 1.5rem; margin-top: 0.75rem; padding: 1.25rem; border-radius: 1.35rem; }
    .hub-hero h1 { font-size: clamp(2.65rem, 13vw, 3.8rem); }
    .hub-hero__lede { font-size: 0.97rem; }
    .hub-hero__actions { display: grid; grid-template-columns: 1fr; width: 100%; }
    .hub-hero__actions .hub-button { width: 100%; }
    .ecosystem-scene { min-height: 21rem; }
    .ecosystem-node { grid-template-columns: 2.15rem auto; gap: 0.4rem; padding: 0.35rem 0.48rem 0.35rem 0.35rem; font-size: 0.68rem; }
    .ecosystem-node img { width: 2.15rem; height: 2.15rem; border-radius: 0.55rem; }
    .ecosystem-node--messenger { top: 8%; left: 4%; }
    .ecosystem-node--files { top: 18%; right: 3%; }
    .ecosystem-node--vpn { bottom: 8%; left: 7%; }
    .ecosystem-core { width: 5.6rem; border-radius: 1.2rem; }
    .ecosystem-core img { width: 2.55rem; height: 2.55rem; border-radius: 0.75rem; }
    .hub-proof { grid-template-columns: 1fr; }
    .hub-proof__item { min-height: 0; padding: 0.8rem 0.95rem; }
    .hub-products,
    .hub-identity,
    .hub-story,
    .hub-transparency,
    .hub-community,
    .hub-roadmap,
    .hub-faq { margin-top: 4.5rem; }
    .hub-section-heading h2 { font-size: clamp(2rem, 11vw, 3rem); }
    .hub-product-tab { flex-basis: 9.6rem; min-height: 3.8rem; font-size: 0.82rem; }
    .hub-product-tab img { width: 1.9rem; height: 1.9rem; }
    .hub-product-panel { min-height: 0; padding: 1.1rem; border-radius: 1.2rem; }
    .hub-product-panel__identity img { width: 3rem; height: 3rem; }
    .hub-product-panel__identity h3 { font-size: 1.85rem; }
    .hub-product-preview { min-height: 16rem; }
    .preview-window { min-height: 14.5rem; padding: 1rem; }
    .hub-identity { padding: 1.2rem; border-radius: 1.3rem; }
    .hub-identity__facts { grid-template-columns: 1fr; }
    .hub-transparency { padding: 1.2rem; border-radius: 1.3rem; }
    .hub-transparency__grid { grid-template-columns: 1fr; margin-top: 1.5rem; }
    .hub-community { padding: 1.2rem; border-radius: 1.3rem; }
    .hub-roadmap { grid-template-columns: 1fr; }
    .hub-footer__cta,
    .hub-footer__bottom { align-items: flex-start; flex-direction: column; }
    .hub-footer__cta { padding: 1.25rem; border-radius: 1.3rem; }
    .hub-footer__cta .hub-button { width: 100%; }
    .hub-footer__bottom nav { justify-content: flex-start; }
    .identity-auth { min-height: auto; padding: 2.2rem 0 4rem; }
    .identity-auth h1 { font-size: clamp(2.5rem, 12vw, 3.75rem); }
    .identity-auth__card { padding: 1.15rem; border-radius: 1.15rem; }
    .hub-profile { min-height: auto; padding: 2.2rem 0 4rem; }
    .hub-profile__card { grid-template-columns: 1fr; padding: 1.15rem; border-radius: 1.15rem; }
    .hub-profile__form .profile-avatar-section { grid-row: auto; }
    .hub-profile__form [data-profile-submit] { grid-column: auto; }
    .hub-profile__actions { align-items: flex-start; flex-direction: column; }
    .hub-not-found { min-height: calc(100vh - 6rem); }
    .email-verify-modal__row { grid-template-columns: 1fr; }
}

@media (max-width: 360px) {
    .hub-header .brand-logo__suffix { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .confahub-body.page-home *,
    .confahub-body.page-login *,
    .confahub-body.page-register *,
    .confahub-body.page-profile *,
    .confahub-body.page-not_found * { scroll-behavior: auto !important; transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}
