:root {
    --font-body: "Inter", "Segoe UI", Arial, sans-serif;
    --font-head: "Cinzel", "Georgia", serif;
    --bg-core: #05090f;
    --bg-ink-a: rgba(5, 9, 14, 0.66);
    --bg-ink-b: rgba(4, 7, 12, 0.84);
    --panel-glass: rgba(7, 14, 24, 0.56);
    --panel-border: rgba(255, 255, 255, 0.14);
    --line-main: rgba(89, 212, 255, 0.26);
    --line-soft: rgba(199, 164, 107, 0.24);
    --text-main: #eef4fb;
    --text-soft: #9fb4c6;
    --glow-primary: #59d4ff;
    --glow-secondary: #c7a46b;
    --shadow-heavy: 0 24px 80px rgba(0, 0, 0, 0.52);
    --radius-xxl: 34px;
    --radius-xl: 26px;
    --radius-lg: 18px;
    --radius-pill: 999px;
    --panel-max: 1220px;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --bg-figure-position: center 52%;
    --bg-figure-size: contain;
}

body[data-page="home"] {
    --bg-glow-1: rgba(74, 198, 255, 0.2);
    --bg-glow-2: rgba(201, 161, 104, 0.14);
    --card-accent: rgba(89, 212, 255, 0.22);
}

body[data-page="architecture"] {
    --bg-glow-1: rgba(102, 153, 255, 0.18);
    --bg-glow-2: rgba(255, 201, 126, 0.12);
    --card-accent: rgba(102, 153, 255, 0.22);
}

body[data-page="continuity"] {
    --bg-glow-1: rgba(170, 255, 204, 0.12);
    --bg-glow-2: rgba(89, 212, 255, 0.14);
    --card-accent: rgba(170, 255, 204, 0.18);
}

body[data-page="evidence"] {
    --bg-glow-1: rgba(255, 212, 128, 0.16);
    --bg-glow-2: rgba(89, 212, 255, 0.10);
    --card-accent: rgba(255, 201, 126, 0.22);
}

body[data-page="access"] {
    --bg-glow-1: rgba(199, 164, 107, 0.18);
    --bg-glow-2: rgba(89, 212, 255, 0.12);
    --card-accent: rgba(199, 164, 107, 0.22);
}

body[data-page="account"] {
    --bg-glow-1: rgba(199, 164, 107, 0.16);
    --bg-glow-2: rgba(114, 196, 255, 0.14);
    --card-accent: rgba(137, 204, 255, 0.22);
}

body[data-page="manifesto"] {
    --bg-glow-1: rgba(173, 230, 255, 0.16);
    --bg-glow-2: rgba(199, 164, 107, 0.16);
    --card-accent: rgba(173, 230, 255, 0.22);
}

body[data-page="use-cases"] {
    --bg-glow-1: rgba(177, 145, 255, 0.16);
    --bg-glow-2: rgba(89, 212, 255, 0.12);
    --card-accent: rgba(177, 145, 255, 0.22);
}

body[data-page="chat"] {
    --bg-glow-1: rgba(255, 201, 126, 0.14);
    --bg-glow-2: rgba(89, 212, 255, 0.16);
    --card-accent: rgba(255, 201, 126, 0.24);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--bg-core);
    color: var(--text-main);
    font-family: var(--font-body);
    letter-spacing: 0.01em;
    overflow-x: hidden;
    opacity: 0;
    transform: translateY(10px);
    transition:
        opacity 420ms var(--ease),
        transform 420ms var(--ease),
        filter 420ms var(--ease);
}

body.is-visible {
    opacity: 1;
    transform: translateY(0);
}

body.page-exit {
    opacity: 0;
    transform: translateY(14px);
    filter: blur(2px);
}

a,
button,
.btn {
    font-family: var(--font-body);
}

a {
    color: inherit;
}

button {
    cursor: pointer;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -4;
    background:
        linear-gradient(180deg, var(--bg-ink-a), var(--bg-ink-b)),
        radial-gradient(circle at 18% 14%, var(--bg-glow-1), transparent 36%),
        radial-gradient(circle at 74% 78%, var(--bg-glow-2), transparent 46%),
        url("./foto/Фон0.png") var(--bg-figure-position) / var(--bg-figure-size) no-repeat;
    opacity: 1;
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -3;
    background:
        radial-gradient(circle at center, transparent 0, transparent 42%, rgba(2, 5, 8, 0.76) 100%),
        linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.36));
}

.mesh {
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.032) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.032) 1px, transparent 1px);
    background-size: 150px 150px;
    opacity: 0.18;
    mask-image: radial-gradient(circle at center, black 0, transparent 68%);
    animation: driftGrid 22s linear infinite;
}

@keyframes driftGrid {
    0% {
        transform: translate3d(0, 0, 0);
    }
    50% {
        transform: translate3d(26px, -26px, 0);
    }
    100% {
        transform: translate3d(0, 0, 0);
    }
}

@keyframes heroGlowPulse {
    0%, 100% {
        transform: translate(-50%, -58%) scale(0.985);
        opacity: 0.72;
    }
    45% {
        transform: translate(-50%, -58%) scale(1);
        opacity: 0.78;
    }
    50% {
        transform: translate(-50%, -58%) scale(1.026);
        opacity: 0.88;
    }
    56% {
        transform: translate(-50%, -58%) scale(1.004);
        opacity: 0.76;
    }
}

@keyframes heroSurfacePulse {
    0%, 100% {
        opacity: 0.76;
    }
    46% {
        opacity: 0.8;
    }
    50% {
        opacity: 0.88;
    }
    56% {
        opacity: 0.81;
    }
}

@keyframes heroFieldDriftLeft {
    0%, 100% {
        transform: translate3d(0, 0, 0) scale(1.01);
        opacity: 0.42;
    }
    50% {
        transform: translate3d(10px, -6px, 0) scale(1.035);
        opacity: 0.5;
    }
}

@keyframes heroFieldDriftRight {
    0%, 100% {
        transform: translate3d(0, 0, 0) scale(1.01);
        opacity: 0.4;
    }
    50% {
        transform: translate3d(-12px, 8px, 0) scale(1.03);
        opacity: 0.48;
    }
}

@keyframes heroAuraFloat {
    0%, 100% {
        transform: translate3d(0, 0, 0) scale(0.992);
        opacity: 0.62;
    }
    50% {
        transform: translate3d(0, -5px, 0) scale(1.018);
        opacity: 0.72;
    }
}

@keyframes heroTerminalFloatLeft {
    0%, 100% {
        transform: perspective(920px) rotateY(14deg) translate3d(0, 0, 0);
    }
    50% {
        transform: perspective(920px) rotateY(14deg) translate3d(5px, -6px, 0);
    }
}

@keyframes heroTerminalFloatRight {
    0%, 100% {
        transform: perspective(920px) rotateY(-14deg) translate3d(0, 0, 0);
    }
    50% {
        transform: perspective(920px) rotateY(-14deg) translate3d(-6px, 6px, 0);
    }
}

.site-shell {
    width: min(var(--panel-max), calc(100% - 36px));
    margin: 0 auto;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 30;
    isolation: isolate;
    padding-top: 8px;
    background: linear-gradient(180deg, rgba(5, 11, 18, 0.74), rgba(5, 11, 18, 0.04));
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.topbar::before,
.topbar::after {
    content: "";
    position: absolute;
    top: -2px;
    width: 176px;
    height: 176px;
    background: url("./foto/Frilans.png") center center / contain no-repeat;
    opacity: 0.76;
    pointer-events: none;
    filter: brightness(1.24) contrast(1.22) saturate(1.08);
}

.topbar::before {
    left: 8px;
    transform: rotate(0deg);
}

.topbar::after {
    right: 8px;
    transform: rotate(0deg);
}

.topbar-inner {
    position: relative;
    z-index: 1;
    display: block;
    text-align: center;
    padding-bottom: 4px;
}

.brand {
    width: 100%;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.brand-logo {
    width: 118px;
    height: 118px;
    padding: 4px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background:
        radial-gradient(circle at 50% 30%, rgba(89, 212, 255, 0.08), transparent 56%),
        rgba(8, 15, 24, 0.22);
    box-shadow:
        0 0 36px rgba(89, 212, 255, 0.2),
        inset 0 0 22px rgba(255, 255, 255, 0.04);
}

.brand-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 14px 24px rgba(0, 0, 0, 0.24));
}

.brand-copy {
    display: grid;
    gap: 4px;
}

.brand-title {
    margin: 0;
    font-family: var(--font-head);
    font-size: 1.16rem;
    text-transform: uppercase;
    letter-spacing: 0.22rem;
    line-height: 1;
}

.brand-sub {
    margin: 0;
    color: #c8d5e5;
    font-size: 0.78rem;
    letter-spacing: 0.05rem;
    text-transform: none;
    line-height: 1.2;
    text-align: center;
    white-space: nowrap;
}

.nav-wrap {
    margin-top: 0;
    position: static;
    min-height: 0;
}

.nav {
    position: fixed;
    top: 20px;
    left: 18px;
    right: auto;
    z-index: 36;
    width: min(286px, calc(100vw - 24px));
    display: grid;
    gap: 10px;
    padding: 120px 14px 16px;
    border: 1px solid rgba(128, 207, 255, 0.18);
    border-radius: 26px;
    overflow: hidden;
    isolation: isolate;
    background:
        linear-gradient(180deg, rgba(7, 14, 23, 0.88), rgba(4, 10, 18, 0.95)),
        linear-gradient(125deg, rgba(89, 212, 255, 0.11), transparent 38%, rgba(199, 164, 107, 0.12) 84%),
        url("./foto/tetrad.png") center 34% / cover no-repeat;
    backdrop-filter: blur(18px) saturate(1.08);
    box-shadow:
        0 28px 74px rgba(0, 0, 0, 0.42),
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        inset 0 0 0 1px rgba(255, 255, 255, 0.03);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate3d(-18px, -8px, 0) scale(0.985);
    transform-origin: top left;
    transition:
        opacity 220ms ease,
        transform 260ms var(--ease),
        visibility 220ms ease;
}

.nav::before,
.nav::after {
    content: "";
    position: absolute;
    pointer-events: none;
}

.nav::before {
    top: 18px;
    left: 50%;
    width: 74px;
    height: 74px;
    transform: translateX(-50%);
    border-radius: 50%;
    background:
        radial-gradient(circle at 50% 34%, rgba(89, 212, 255, 0.12), transparent 58%),
        rgba(7, 14, 24, 0.36) url("./foto/logotip2.PNG") center center / 92% 92% no-repeat;
    border: 1px solid rgba(255, 255, 255, 0.09);
    box-shadow:
        0 16px 36px rgba(0, 0, 0, 0.3),
        0 0 30px rgba(89, 212, 255, 0.18),
        inset 0 0 18px rgba(255, 255, 255, 0.04);
    z-index: 0;
}

.nav::after {
    inset: 0;
    background:
        radial-gradient(circle at 50% 18%, rgba(89, 212, 255, 0.14), transparent 20%),
        radial-gradient(circle at 24% 74%, rgba(89, 212, 255, 0.08) 0, rgba(89, 212, 255, 0.08) 1.25px, transparent 2.8px),
        radial-gradient(circle at 76% 28%, rgba(199, 164, 107, 0.08) 0, rgba(199, 164, 107, 0.08) 1.25px, transparent 2.9px),
        linear-gradient(135deg, transparent 22%, rgba(125, 220, 255, 0.04) 22.8%, transparent 24.3%, transparent 64%, rgba(125, 220, 255, 0.035) 64.8%, transparent 66.4%);
    opacity: 0.8;
    z-index: 0;
}

.nav > * {
    position: relative;
    z-index: 1;
}

.nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    position: relative;
    overflow: hidden;
    padding: 14px 18px;
    border-radius: 18px;
    color: #ecf4ff;
    font-size: 0.96rem;
    font-weight: 600;
    text-decoration: none;
    letter-spacing: 0.03em;
    border: 1px solid rgba(146, 196, 255, 0.14);
    background:
        linear-gradient(180deg, rgba(18, 30, 44, 0.72), rgba(10, 18, 29, 0.9)),
        linear-gradient(90deg, rgba(89, 212, 255, 0.05), rgba(199, 164, 107, 0.03));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        inset 0 -1px 0 rgba(89, 212, 255, 0.04),
        0 10px 24px rgba(0, 0, 0, 0.14);
    transition:
        transform 190ms ease,
        border-color 190ms ease,
        color 190ms ease,
        box-shadow 220ms ease,
        background 220ms ease;
}

.nav a::before,
.nav a::after {
    content: "";
    position: absolute;
    pointer-events: none;
    transition:
        opacity 220ms ease,
        transform 220ms ease,
        filter 220ms ease;
}

.nav a::before {
    inset: 0;
    background:
        linear-gradient(90deg, transparent 0, transparent 14%, rgba(125, 225, 255, 0.06) 14.8%, transparent 16.4%, transparent 50%, rgba(125, 225, 255, 0.05) 50.8%, transparent 52.4%, transparent 82%, rgba(199, 164, 107, 0.055) 82.8%, transparent 84.4%),
        radial-gradient(circle at 18% 50%, rgba(125, 225, 255, 0.12) 0, rgba(125, 225, 255, 0.12) 1px, transparent 5px),
        radial-gradient(circle at 82% 50%, rgba(199, 164, 107, 0.11) 0, rgba(199, 164, 107, 0.11) 1px, transparent 5px);
    opacity: 0.72;
}

.nav a::after {
    width: 68px;
    height: 68px;
    top: 50%;
    right: -12px;
    transform: translateY(-50%) scale(0.84);
    border-radius: 50%;
    background:
        radial-gradient(circle, rgba(89, 212, 255, 0.2) 0, rgba(89, 212, 255, 0.08) 28%, transparent 68%);
    filter: blur(10px);
    opacity: 0.5;
}

.nav a:hover,
.nav a[aria-current="page"] {
    color: var(--text-main);
    border-color: rgba(120, 222, 255, 0.34);
    background:
        linear-gradient(180deg, rgba(24, 39, 56, 0.86), rgba(10, 18, 29, 0.94)),
        linear-gradient(90deg, rgba(89, 212, 255, 0.1), rgba(199, 164, 107, 0.06));
    box-shadow:
        0 16px 34px rgba(0, 0, 0, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.07),
        0 0 28px rgba(89, 212, 255, 0.12);
    transform: translateY(-2px) scale(1.012);
}

.nav a:hover::before,
.nav a[aria-current="page"]::before {
    opacity: 1;
    transform: translateX(3px);
}

.nav a:hover::after,
.nav a[aria-current="page"]::after {
    opacity: 0.72;
    transform: translateY(-50%) scale(1);
    filter: blur(8px);
}

.nav.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate3d(0, 0, 0) scale(1);
}

.lang-switch {
    display: none;
}

.nav .lang-switch {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: fit-content;
    margin: 0 auto 12px;
    padding: 6px;
    border: 1px solid rgba(132, 201, 255, 0.14);
    border-radius: 999px;
    background:
        linear-gradient(180deg, rgba(18, 29, 43, 0.8), rgba(9, 17, 28, 0.92)),
        rgba(255, 255, 255, 0.03);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 12px 28px rgba(0, 0, 0, 0.2);
}

.lang-switch-btn {
    min-width: 32px;
    height: 28px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(26, 39, 54, 0.9), rgba(13, 22, 33, 0.96));
    color: #c7d9e8;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transition:
        transform 180ms ease,
        background 180ms ease,
        color 180ms ease,
        box-shadow 180ms ease;
}

.lang-switch-btn:hover {
    color: var(--text-main);
    background: linear-gradient(180deg, rgba(36, 53, 72, 0.96), rgba(14, 24, 35, 0.98));
    transform: translateY(-1px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 8px 18px rgba(0, 0, 0, 0.16);
}

.lang-switch-btn.is-active {
    color: #06111a;
    background: linear-gradient(180deg, rgba(89, 212, 255, 0.96), rgba(199, 164, 107, 0.92));
    box-shadow:
        0 10px 18px rgba(89, 212, 255, 0.14),
        inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.mobile-menu {
    position: fixed;
    top: 96px;
    left: 34px;
    right: auto;
    transform: none;
    z-index: 38;
    border: 1px solid rgba(128, 207, 255, 0.18);
    border-radius: 14px;
    width: 42px;
    height: 42px;
    font-size: 1.04rem;
    color: var(--text-main);
    background:
        linear-gradient(180deg, rgba(14, 26, 39, 0.92), rgba(7, 15, 25, 0.96)),
        radial-gradient(circle at 50% 20%, rgba(89, 212, 255, 0.16), transparent 60%),
        rgba(6, 12, 20, 0.72);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(16px);
    box-shadow:
        0 14px 32px rgba(0, 0, 0, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
    touch-action: none;
    transition:
        border-color 180ms ease,
        color 180ms ease,
        background 180ms ease,
        box-shadow 180ms ease,
        transform 180ms ease;
}

.mobile-menu:hover {
    border-color: var(--glow-primary);
    color: var(--glow-primary);
    background:
        linear-gradient(180deg, rgba(17, 31, 46, 0.95), rgba(8, 16, 27, 0.98)),
        radial-gradient(circle at 50% 20%, rgba(89, 212, 255, 0.18), transparent 62%);
    box-shadow:
        0 16px 34px rgba(0, 0, 0, 0.3),
        0 0 24px rgba(89, 212, 255, 0.14);
    transform: scale(1.05);
}

.mobile-menu.is-dragging {
    cursor: grabbing;
    transform: scale(1.05);
    box-shadow:
        0 16px 34px rgba(0, 0, 0, 0.28),
        0 0 22px rgba(89, 212, 255, 0.16);
}

.owner-debug-shell {
    position: fixed;
    left: 18px;
    bottom: 18px;
    z-index: 39;
}

.owner-debug-toggle {
    min-height: 40px;
    padding: 0 15px;
    border-radius: 999px;
    border: 1px solid rgba(199, 164, 107, 0.28);
    background:
        linear-gradient(180deg, rgba(13, 22, 34, 0.92), rgba(7, 12, 21, 0.96)),
        radial-gradient(circle at 50% 0%, rgba(199, 164, 107, 0.12), transparent 58%);
    color: var(--text-main);
    box-shadow:
        0 16px 34px rgba(0, 0, 0, 0.24),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(16px);
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.owner-debug-toggle:hover,
.owner-debug-toggle:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(199, 164, 107, 0.48);
    box-shadow:
        0 18px 36px rgba(0, 0, 0, 0.28),
        0 0 26px rgba(199, 164, 107, 0.12);
    outline: none;
}

.owner-debug-panel {
    position: absolute;
    left: 0;
    bottom: calc(100% + 12px);
    width: min(340px, calc(100vw - 28px));
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px) scale(0.98);
    transition: opacity 180ms ease, transform 220ms var(--ease);
}

.owner-debug-panel.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.owner-debug-panel__inner {
    padding: 16px;
    border-radius: 24px;
    background:
        linear-gradient(180deg, rgba(8, 15, 24, 0.94), rgba(5, 10, 17, 0.98)),
        radial-gradient(circle at 100% 0%, rgba(199, 164, 107, 0.08), transparent 30%);
}

.owner-debug-panel__eyebrow {
    margin-bottom: 8px;
}

.owner-debug-panel__title {
    margin: 0 0 8px;
    font-family: var(--font-head);
    font-size: 1.5rem;
    color: var(--text-main);
}

.owner-debug-panel__copy {
    margin: 0 0 14px;
    color: var(--text-soft);
    line-height: 1.62;
}

.owner-debug-panel__identity {
    display: grid;
    gap: 4px;
    margin: 0 0 14px;
    padding: 12px 14px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02)),
        radial-gradient(circle at 100% 0%, rgba(199, 164, 107, 0.08), transparent 36%);
}

.owner-debug-panel__identity[data-state="active"] {
    border-color: rgba(199, 164, 107, 0.28);
    box-shadow: 0 0 24px rgba(199, 164, 107, 0.08);
}

.owner-debug-panel__identity[data-state="error"] {
    border-color: rgba(224, 130, 116, 0.26);
}

.owner-debug-panel__identity-label {
    color: var(--text-soft);
    font-size: 0.7rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.owner-debug-panel__identity-value {
    color: var(--text-main);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.owner-debug-panel__identity-meta {
    color: rgba(224, 233, 247, 0.68);
    font-size: 0.8rem;
    line-height: 1.5;
}

.owner-debug-panel__field {
    display: grid;
    gap: 8px;
    margin-bottom: 14px;
}

.owner-debug-panel__field span {
    color: var(--text-soft);
    font-size: 0.74rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.owner-debug-panel__field input {
    width: 100%;
    min-height: 42px;
    padding: 0 14px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-main);
    font: inherit;
}

.owner-debug-panel__field input:focus {
    outline: none;
    border-color: rgba(89, 212, 255, 0.32);
    box-shadow: 0 0 0 3px rgba(89, 212, 255, 0.08);
}

.owner-debug-panel__actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.owner-debug-btn {
    min-height: 40px;
    padding-inline: 14px;
    font-size: 0.9rem;
}

.btn-secondary {
    color: var(--text-main);
    border-color: rgba(199, 164, 107, 0.26);
    background: rgba(255, 255, 255, 0.04);
}

.btn-secondary:hover {
    box-shadow: 0 14px 28px rgba(199, 164, 107, 0.14);
    background: rgba(255, 255, 255, 0.07);
}

.owner-debug-panel__status {
    margin: 6px 0 0;
    min-height: 2.8em;
    color: var(--text-soft);
    line-height: 1.58;
}

.owner-debug-panel__status[data-state="success"] {
    color: #cce9d7;
}

.owner-debug-panel__status[data-state="error"] {
    color: #f0c2ba;
}

.owner-debug-panel__status[data-state="loading"] {
    color: #e3d1aa;
}

main {
    position: relative;
    padding-top: 12px;
    padding-bottom: 54px;
}

main::after {
    content: "© 2026 Garmon. All rights reserved.";
    position: fixed;
    right: 14px;
    bottom: 12px;
    z-index: 12;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(5, 11, 18, 0.42);
    color: rgba(210, 223, 235, 0.62);
    font-size: 0.68rem;
    line-height: 1;
    letter-spacing: 0.06em;
    backdrop-filter: blur(10px);
    pointer-events: none;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

html[lang="ru"] main::after {
    content: "© 2026 Garmon. Все права защищены.";
}

html[lang="en"] main::after {
    content: "© 2026 Garmon. All rights reserved.";
}

html[lang="he"] main::after {
    content: "© 2026 Garmon. כל הזכויות שמורות.";
    letter-spacing: 0;
}

.panel {
    padding: clamp(1.2rem, 2.5vw, 2.2rem);
    background: var(--panel-glass);
    border: 1px solid var(--panel-border);
    border-radius: var(--radius-xxl);
    box-shadow: var(--shadow-heavy);
    backdrop-filter: blur(12px);
}

.hero {
    display: grid;
    grid-template-columns: 1.35fr 0.95fr;
    gap: 18px;
}

.hero-home {
    grid-template-columns: 1fr;
    gap: 0;
    align-items: stretch;
}

.hero-main {
    position: relative;
    min-height: 468px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    isolation: isolate;
    background:
        linear-gradient(180deg, rgba(9, 16, 28, 0.86), rgba(6, 11, 20, 0.96)),
        radial-gradient(circle at 12% 18%, rgba(199, 164, 107, 0.12), transparent 30%),
        radial-gradient(circle at 84% 28%, rgba(89, 212, 255, 0.16), transparent 36%);
}

.hero-main::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.hero-main::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.hero-ambient-field {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.hero-ambient-field::before,
.hero-ambient-field::after {
    content: "";
    position: absolute;
    top: 6%;
    bottom: 10%;
    width: clamp(240px, 33vw, 420px);
    pointer-events: none;
    transition: opacity 260ms ease, transform 260ms ease;
}

.hero-ambient-field::before {
    left: -10%;
    background:
        radial-gradient(ellipse at 28% 52%, rgba(61, 165, 190, 0.24), transparent 56%),
        radial-gradient(circle at 46% 24%, rgba(145, 231, 255, 0.16) 0, rgba(145, 231, 255, 0.16) 1.3px, transparent 2.9px),
        radial-gradient(circle at 30% 54%, rgba(123, 214, 240, 0.11) 0, rgba(123, 214, 240, 0.11) 1.2px, transparent 2.8px),
        radial-gradient(circle at 54% 72%, rgba(148, 236, 255, 0.09) 0, rgba(148, 236, 255, 0.09) 1.15px, transparent 2.7px),
        linear-gradient(124deg, transparent 20%, rgba(111, 209, 229, 0.055) 20.8%, transparent 21.8%, transparent 41%, rgba(111, 209, 229, 0.045) 41.8%, transparent 43%, transparent 66%, rgba(111, 209, 229, 0.032) 66.8%, transparent 67.9%);
    mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.96), rgba(0, 0, 0, 0.78) 58%, transparent 100%);
    opacity: 0.42;
    animation: heroFieldDriftLeft 17s ease-in-out infinite;
}

.hero-ambient-field::after {
    right: -10%;
    background:
        radial-gradient(ellipse at 72% 50%, rgba(98, 124, 219, 0.2), transparent 56%),
        radial-gradient(circle at 58% 28%, rgba(157, 191, 255, 0.13) 0, rgba(157, 191, 255, 0.13) 1.35px, transparent 3px),
        radial-gradient(circle at 72% 58%, rgba(135, 170, 255, 0.11) 0, rgba(135, 170, 255, 0.11) 1.2px, transparent 2.9px),
        radial-gradient(circle at 44% 76%, rgba(138, 210, 255, 0.08) 0, rgba(138, 210, 255, 0.08) 1.1px, transparent 2.6px),
        linear-gradient(236deg, transparent 20%, rgba(124, 158, 244, 0.05) 20.8%, transparent 21.8%, transparent 43%, rgba(124, 158, 244, 0.04) 43.8%, transparent 45%, transparent 68%, rgba(124, 158, 244, 0.03) 68.6%, transparent 69.8%);
    mask-image: linear-gradient(270deg, rgba(0, 0, 0, 0.96), rgba(0, 0, 0, 0.78) 58%, transparent 100%);
    opacity: 0.4;
    animation: heroFieldDriftRight 18.4s ease-in-out infinite;
}

.hero-terminal {
    position: absolute;
    top: 12.5%;
    width: clamp(260px, 30vw, 420px);
    display: grid;
    gap: 0.36rem;
    font-family: "Cascadia Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
    font-size: clamp(0.62rem, 0.7vw, 0.78rem);
    line-height: 1.2;
    letter-spacing: 0.065em;
    text-transform: none;
    white-space: nowrap;
    opacity: 0.16;
    filter: blur(1.45px);
    pointer-events: none;
    text-shadow: 0 0 18px rgba(120, 210, 230, 0.11);
    transition: opacity 420ms ease, filter 460ms ease, transform 520ms ease;
}

.hero-terminal--left {
    left: 2.4%;
    text-align: left;
    color: rgba(182, 239, 247, 0.68);
    transform: perspective(920px) rotateY(14deg) translate3d(-12px, 8px, 0);
    mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.92), rgba(0, 0, 0, 0.74) 68%, transparent 100%);
}

.hero-terminal--right {
    right: 2.4%;
    text-align: right;
    color: rgba(203, 220, 255, 0.65);
    transform: perspective(920px) rotateY(-14deg) translate3d(12px, 8px, 0);
    mask-image: linear-gradient(270deg, rgba(0, 0, 0, 0.92), rgba(0, 0, 0, 0.74) 68%, transparent 100%);
}

.hero-terminal-line {
    display: block;
    overflow: hidden;
    text-overflow: clip;
    opacity: 0.74;
}

.hero-terminal-line:nth-child(2n) {
    opacity: 0.62;
}

.hero-terminal-line:nth-child(3n) {
    opacity: 0.5;
}

.hero-terminal-line:last-child {
    opacity: 0.4;
    filter: blur(0.2px);
}

.hero-main > *:not(.hero-ambient-field) {
    position: relative;
    z-index: 2;
}

.hero-main-centered {
    min-height: clamp(520px, 66vh, 560px);
    align-items: center;
    text-align: center;
    justify-content: center;
    padding: clamp(1.6rem, 3.6vw, 3.15rem);
    background:
        linear-gradient(180deg, rgba(8, 14, 24, 0.82), rgba(5, 10, 18, 0.95)),
        radial-gradient(circle at 50% 12%, rgba(89, 212, 255, 0.1), transparent 32%),
        radial-gradient(circle at 50% 76%, rgba(199, 164, 107, 0.1), transparent 34%);
    box-shadow: 0 28px 68px rgba(0, 0, 0, 0.28);
    transition: transform 260ms ease, box-shadow 260ms ease, filter 260ms ease, border-color 260ms ease;
    will-change: transform, box-shadow, filter;
}

.hero-main-centered::before {
    inset: -24% -16%;
    border-radius: 46%;
    background:
        radial-gradient(ellipse at 18% 52%, rgba(53, 151, 181, 0.18), transparent 48%),
        radial-gradient(ellipse at 82% 48%, rgba(90, 105, 208, 0.16), transparent 48%),
        radial-gradient(ellipse at 50% 46%, rgba(89, 212, 255, 0.08), transparent 56%);
    filter: blur(24px);
    opacity: 0.66;
    animation: heroAuraFloat 14.8s ease-in-out infinite;
}

.hero-main-centered::after {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 22%),
        radial-gradient(circle at 50% 12%, rgba(89, 212, 255, 0.13), transparent 28%),
        radial-gradient(circle at 14% 50%, rgba(48, 150, 179, 0.08), transparent 24%),
        radial-gradient(circle at 86% 50%, rgba(92, 118, 214, 0.08), transparent 26%),
        radial-gradient(circle at 50% 100%, rgba(199, 164, 107, 0.075), transparent 28%);
    opacity: 0.74;
    animation: heroSurfacePulse 10.4s ease-in-out infinite;
}

.hero-main:hover .hero-ambient-field::before,
.hero-main:focus-within .hero-ambient-field::before {
    opacity: 0.56;
}

.hero-main:hover .hero-ambient-field::after,
.hero-main:focus-within .hero-ambient-field::after {
    opacity: 0.54;
}

.hero-main:hover .hero-terminal--left,
.hero-main:focus-within .hero-terminal--left {
    opacity: 0.52;
    filter: blur(0.32px);
    transform: perspective(920px) rotateY(14deg) translate3d(0, 0, 0);
    animation: heroTerminalFloatLeft 16.2s ease-in-out infinite;
}

.hero-main:hover .hero-terminal--right,
.hero-main:focus-within .hero-terminal--right {
    opacity: 0.48;
    filter: blur(0.36px);
    transform: perspective(920px) rotateY(-14deg) translate3d(0, 0, 0);
    animation: heroTerminalFloatRight 17.8s ease-in-out infinite;
}

.hero-main:hover .hero-main-centered::before,
.hero-main:focus-within .hero-main-centered::before {
    opacity: 0.78;
}

.hero-main:hover .hero-visual-glow,
.hero-main:focus-within .hero-visual-glow {
    filter: blur(16px);
}

.hero-main-centered:hover,
.hero-main-centered:focus-within {
    transform: scale(1.011);
    filter: brightness(1.034);
    border-color: rgba(255, 255, 255, 0.14);
    box-shadow: 0 40px 88px rgba(0, 0, 0, 0.34);
}

.hero-main-centered:hover::after,
.hero-main-centered:focus-within::after {
    opacity: 0.92;
}

.hero-visual {
    position: relative;
    display: grid;
    place-items: center;
    gap: 8px;
    margin: -22px auto 18px;
    width: min(100%, 320px);
}

.hero-visual-glow {
    position: absolute;
    inset: 50% auto auto 50%;
    width: clamp(165px, 22vw, 250px);
    height: clamp(165px, 22vw, 250px);
    transform: translate(-50%, -58%);
    border-radius: 50%;
    background:
        radial-gradient(circle, rgba(89, 212, 255, 0.16), rgba(89, 212, 255, 0.06) 42%, transparent 72%),
        radial-gradient(circle at 42% 58%, rgba(199, 164, 107, 0.12), transparent 64%);
    filter: blur(14px);
    pointer-events: none;
    animation: heroGlowPulse 7.8s cubic-bezier(0.42, 0, 0.2, 1) infinite;
}

.hero-visual-frame {
    position: relative;
    display: grid;
    place-items: center;
    width: clamp(156px, 21vw, 220px);
    aspect-ratio: 1;
    transform: translateY(-10px);
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.01)),
        radial-gradient(circle at 50% 12%, rgba(89, 212, 255, 0.1), transparent 42%),
        rgba(7, 14, 25, 0.7);
    box-shadow:
        0 22px 52px rgba(0, 0, 0, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(14px);
    transition: transform 260ms ease, box-shadow 260ms ease, border-color 260ms ease;
}

.hero-visual-frame::before {
    content: "";
    position: absolute;
    inset: 11px;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    pointer-events: none;
}

.hero-main-centered:hover .hero-visual-frame,
.hero-main-centered:focus-within .hero-visual-frame {
    transform: translateY(-12px);
    border-color: rgba(255, 255, 255, 0.14);
    box-shadow:
        0 28px 60px rgba(0, 0, 0, 0.32),
        inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.hero-art {
    position: relative;
    z-index: 1;
    width: 82%;
    height: 82%;
    object-fit: contain;
    filter: drop-shadow(0 10px 26px rgba(0, 0, 0, 0.38));
}

.hero-art-caption {
    margin: -2px 0 0;
    color: rgba(245, 233, 207, 0.9);
    font-family: var(--font-head);
    font-size: 1.06rem;
    font-style: normal;
    font-variant: small-caps;
    font-weight: 600;
    letter-spacing: 0.32rem;
    text-transform: uppercase;
    text-shadow: 0 8px 20px rgba(5, 10, 18, 0.36);
}

.hero-copy {
    display: grid;
    gap: 0;
    justify-items: center;
    max-width: 42rem;
    margin: 0 auto;
}

.hero-home .hero-main h1 {
    max-width: 12ch;
    color: #f1ddb0;
    font-size: clamp(2rem, 3.8vw, 3.18rem);
    line-height: 1.02;
    letter-spacing: -0.04em;
    text-shadow: 0 12px 30px rgba(8, 14, 24, 0.34);
}

.hero-subcard {
    max-width: 24rem;
    padding: 10px 16px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.042), rgba(255, 255, 255, 0.012));
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
}

.hero-subcard--quote {
    position: relative;
    max-width: min(100%, 38rem);
    padding: clamp(1.1rem, 1.8vw, 1.45rem) clamp(1.25rem, 2.2vw, 2rem) clamp(1rem, 1.7vw, 1.35rem);
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background:
        linear-gradient(180deg, rgba(14, 24, 36, 0.54), rgba(8, 14, 24, 0.36)),
        radial-gradient(circle at 50% 0%, rgba(89, 212, 255, 0.08), transparent 44%),
        radial-gradient(circle at 50% 100%, rgba(199, 164, 107, 0.06), transparent 46%);
    box-shadow:
        0 22px 56px rgba(0, 0, 0, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(16px);
}

.hero-subcard--quote::before {
    content: "";
    position: absolute;
    inset: 10px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    pointer-events: none;
}

.hero-subcard--quote::after {
    content: "";
    position: absolute;
    inset: auto 14% -12% 14%;
    height: 32%;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(89, 212, 255, 0.12), rgba(89, 212, 255, 0.02) 56%, transparent 78%);
    filter: blur(18px);
    opacity: 0.85;
    pointer-events: none;
}

.hero-lead-line {
    margin: 0;
    color: #e4eef6;
    font-size: clamp(0.96rem, 1.08vw, 1.01rem);
    line-height: 1.34;
}

.hero-lead-line--quote {
    margin-top: 12px;
    color: #d6e2ec;
    font-size: clamp(0.98rem, 1.14vw, 1.1rem);
    line-height: 1.42;
    letter-spacing: 0.02em;
    text-wrap: balance;
}

.hero-lead-line + .hero-lead-line {
    margin-top: 4px;
    color: #c8d9e6;
}

.hero-action-row {
    margin-top: 22px;
    display: flex;
    justify-content: center;
}

.btn-hero-home {
    min-width: 172px;
    min-height: 62px;
    padding: 15px 42px;
    border-color: rgba(89, 212, 255, 0.48);
    background:
        linear-gradient(180deg, rgba(89, 212, 255, 0.24), rgba(89, 212, 255, 0.08)),
        rgba(255, 255, 255, 0.02);
    font-size: 1.08rem;
    font-weight: 700;
    letter-spacing: 0.025em;
    box-shadow: 0 24px 58px rgba(89, 212, 255, 0.24);
}

.btn-hero-home:hover {
    box-shadow: 0 28px 64px rgba(89, 212, 255, 0.32);
}

.eyebrow {
    margin: 0 0 11px;
    color: var(--glow-secondary);
    letter-spacing: 0.24rem;
    text-transform: uppercase;
    font-size: 0.7rem;
}

h1, h2, h3, h4, h5 {
    margin: 0;
    font-family: var(--font-head);
}

.hero h1 {
    font-size: clamp(2rem, 3.9vw, 3.45rem);
    line-height: 1.09;
}

p {
    margin: 0;
    color: var(--text-soft);
    line-height: 1.67;
}

.hero p {
    max-width: 70ch;
}

.formula {
    margin-top: 20px;
    display: grid;
    grid-template-columns: repeat(9, auto);
    align-items: center;
    gap: 10px;
}

.formula-chip {
    border: 1px solid var(--line-main);
    border-radius: var(--radius-pill);
    padding: 7px 11px;
    white-space: nowrap;
    font-size: 0.9rem;
}

.formula-arrow {
    color: var(--glow-secondary);
    font-size: 0.95rem;
    opacity: 0.9;
    letter-spacing: 0.1rem;
}

.actions {
    margin-top: 24px;
    display: flex;
    gap: 11px;
    flex-wrap: wrap;
    align-items: stretch;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 11px 18px;
    border-radius: var(--radius-pill);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    transition: 160ms ease;
    border: 1px solid transparent;
    letter-spacing: 0.01em;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    color: var(--text-main);
    border-color: rgba(89, 212, 255, 0.42);
    background: linear-gradient(180deg, rgba(89, 212, 255, 0.24), rgba(89, 212, 255, 0.08));
}

.btn-ghost {
    color: var(--text-main);
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.02);
}

.btn-primary:hover {
    box-shadow: 0 14px 34px rgba(89, 212, 255, 0.27);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.06);
}

.hero-side ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 12px;
}

.hero-side li {
    display: flex;
    align-items: flex-start;
    gap: 11px;
}

.hero-side .tag {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    margin-top: 8px;
    flex-shrink: 0;
    background: linear-gradient(180deg, var(--glow-primary), var(--glow-secondary));
    box-shadow: 0 0 14px rgba(89, 212, 255, 0.45);
}

.hero-side {
    position: relative;
    min-height: 420px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 18px;
    overflow: hidden;
    border-color: var(--line-main);
    background:
        linear-gradient(180deg, rgba(9, 18, 34, 0.74), rgba(6, 11, 20, 0.94)),
        radial-gradient(circle at 50% 38%, rgba(255, 187, 93, 0.2), transparent 45%);
}

.hero-side-home {
    min-height: auto;
    justify-content: flex-start;
    gap: 18px;
    background:
        linear-gradient(180deg, rgba(8, 16, 28, 0.82), rgba(5, 10, 18, 0.95)),
        radial-gradient(circle at 82% 12%, rgba(89, 212, 255, 0.16), transparent 30%);
}

.hero-side-home::after {
    inset: 16px;
    border-color: rgba(255, 255, 255, 0.1);
}

.hero-side-copy {
    color: #d6e3ef;
    font-size: 1rem;
    line-height: 1.72;
    max-width: 32ch;
}

.signal-list {
    display: grid;
    gap: 12px;
}

.signal-item {
    padding: 14px 15px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.035);
}

.signal-item strong {
    display: block;
    margin-bottom: 4px;
    color: var(--text-main);
    font-size: 0.96rem;
}

.signal-item span {
    display: block;
    color: #b8cadb;
    font-size: 0.9rem;
    line-height: 1.58;
}

.hero-side-note {
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #f1e2bb;
    font-size: 0.8rem;
    letter-spacing: 0.14rem;
    text-transform: uppercase;
}

.hero-side::after {
    content: "";
    position: absolute;
    inset: 14px;
    border: 1px dashed rgba(255, 255, 255, 0.16);
    border-radius: 14px;
    pointer-events: none;
}

.hero-side > * {
    position: relative;
    z-index: 1;
}

.hero-side .foot {
    border-top: 1px solid rgba(255, 255, 255, 0.11);
    margin-top: 18px;
    padding-top: 12px;
    color: var(--text-soft);
    font-size: 0.86rem;
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.grid-3 {
    margin-top: 18px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.card {
    border-radius: var(--radius-xl);
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: linear-gradient(180deg, rgba(9, 16, 26, 0.72), rgba(6, 12, 19, 0.84));
    padding: 18px;
    min-height: 158px;
    transition: 220ms ease;
}

.card:hover {
    transform: translateY(-3px);
    border-color: var(--card-accent);
}

.card h3 {
    margin: 0 0 8px;
    font-size: 1.08rem;
}

.card p {
    margin-top: 7px;
    font-size: 0.96rem;
    color: #d8e5f2;
    line-height: 1.58;
}

.section-title {
    margin: 24px 0 12px;
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
}

.page-section {
    margin-top: 22px;
}

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

.summary-card {
    min-height: 0;
    padding: 24px 22px;
    background:
        linear-gradient(180deg, rgba(10, 16, 24, 0.82), rgba(6, 11, 18, 0.9)),
        radial-gradient(circle at 0 0, rgba(255, 255, 255, 0.04), transparent 34%);
    transition: transform 260ms ease, box-shadow 260ms ease, border-color 260ms ease, filter 260ms ease;
}

.summary-card h2 {
    margin: 0 0 10px;
    font-size: 1.28rem;
    text-align: center;
    color: #f1ddb0;
    text-shadow: 0 8px 22px rgba(8, 14, 24, 0.26);
}

.summary-card p {
    color: #d2dfeb;
    font-size: 0.98rem;
    line-height: 1.64;
}

.summary-card:hover,
.summary-card:focus-within {
    transform: scale(1.016);
    filter: brightness(1.03);
    border-color: rgba(89, 212, 255, 0.24);
    box-shadow:
        0 26px 58px rgba(0, 0, 0, 0.22),
        0 0 34px rgba(89, 212, 255, 0.08);
}

.story-band {
    display: grid;
    grid-template-columns: 1.24fr 0.8fr;
    gap: 18px;
    align-items: center;
    transition: transform 280ms ease, box-shadow 280ms ease, border-color 280ms ease, filter 280ms ease;
}

.story-band-copy {
    display: grid;
    gap: 14px;
    max-width: 56ch;
}

.story-band .eyebrow,
.story-band .section-title {
    text-align: center;
}

.story-band .section-title {
    color: #f1ddb0;
    text-shadow: 0 10px 26px rgba(8, 14, 24, 0.26);
}

.story-band:hover,
.story-band:focus-within {
    transform: scale(1.01);
    filter: brightness(1.022);
    border-color: rgba(89, 212, 255, 0.22);
    box-shadow:
        0 30px 64px rgba(0, 0, 0, 0.24),
        0 0 40px rgba(89, 212, 255, 0.07);
}

.story-band-figure {
    margin: 0;
    display: grid;
    justify-items: center;
    gap: 10px;
}

.page-media-card {
    display: grid;
    align-items: center;
    justify-items: center;
    gap: 12px;
    text-align: center;
    min-height: 100%;
    background:
        linear-gradient(180deg, rgba(8, 15, 26, 0.82), rgba(5, 10, 18, 0.94)),
        radial-gradient(circle at 50% 18%, rgba(89, 212, 255, 0.12), transparent 28%),
        radial-gradient(circle at 50% 82%, rgba(199, 164, 107, 0.1), transparent 34%);
}

.page-media-frame {
    position: relative;
    width: min(100%, 318px);
    aspect-ratio: 1 / 1;
    border-radius: 28px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01)),
        rgba(6, 11, 20, 0.86);
    box-shadow:
        0 20px 48px rgba(0, 0, 0, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.page-media-frame::before {
    content: "";
    position: absolute;
    inset: 10px;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    pointer-events: none;
}

.page-media-frame--wide {
    width: min(100%, 372px);
    aspect-ratio: 16 / 10;
}

.page-media-frame--portrait {
    width: min(100%, 276px);
    aspect-ratio: 4 / 5.2;
}

.page-media-frame--compact {
    width: min(100%, 228px);
}

.page-media-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.page-media-image--about {
    object-position: center 22%;
    transform: scale(1.01);
}

.page-media-image--contain {
    object-fit: contain;
    padding: 18px;
}

.page-media-caption {
    margin: 0;
    color: rgba(241, 228, 198, 0.86);
    font-family: var(--font-head);
    font-size: 0.78rem;
    letter-spacing: 0.08rem;
    line-height: 1.45;
}

.section-head {
    position: relative;
    display: grid;
    justify-items: center;
    gap: 10px;
    max-width: 56rem;
    margin: 0 auto 22px;
    text-align: center;
}

.section-head::before {
    content: "";
    width: 84px;
    height: 1px;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent, rgba(241, 221, 176, 0.92), transparent);
    box-shadow: 0 0 18px rgba(241, 221, 176, 0.16);
}

.home-path-title {
    margin-top: 0;
    color: #f1ddb0;
    text-shadow: 0 10px 26px rgba(8, 14, 24, 0.24);
}

.section-intro {
    color: #c3d3e2;
    font-size: 1rem;
    line-height: 1.7;
    max-width: 54ch;
    margin: 0 auto;
}

.path-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(185px, 1fr));
    gap: 14px;
}

.path-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 220px;
    padding: 22px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background:
        linear-gradient(180deg, rgba(9, 16, 26, 0.82), rgba(5, 10, 18, 0.94)),
        radial-gradient(circle at 0 0, rgba(89, 212, 255, 0.08), transparent 30%);
    text-decoration: none;
    overflow: hidden;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.24);
    transition: 220ms ease;
}

.path-card::before {
    content: "";
    position: absolute;
    inset: auto -22% 54% 46%;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(199, 164, 107, 0.18), transparent 72%);
    pointer-events: none;
}

.path-card > * {
    position: relative;
    z-index: 1;
}

.path-card:hover {
    transform: translateY(-4px);
    border-color: rgba(89, 212, 255, 0.3);
    box-shadow: 0 22px 46px rgba(0, 0, 0, 0.32);
}

.path-kicker {
    color: var(--glow-secondary);
    font-size: 0.74rem;
    letter-spacing: 0.14rem;
    text-transform: uppercase;
}

.path-card h3 {
    font-size: 1.2rem;
}

.path-card p {
    color: #d1deea;
    line-height: 1.6;
}

.path-link {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-main);
    font-weight: 600;
}

.path-link::after {
    content: "→";
    color: var(--glow-secondary);
    transition: transform 180ms ease;
}

.path-card:hover .path-link::after {
    transform: translateX(2px);
}

.two-col {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 14px;
}

body[data-page="architecture"] .hero > .panel,
body[data-page="architecture"] .page-media-card,
body[data-page="architecture"] .timeline-item.panel,
body[data-page="architecture"] .two-col > .panel,
body[data-page="architecture"] .two-col .card {
    transition:
        transform 220ms ease,
        border-color 220ms ease,
        box-shadow 220ms ease,
        background 220ms ease;
}

body[data-page="architecture"] .hero > .panel:hover,
body[data-page="architecture"] .page-media-card:hover,
body[data-page="architecture"] .timeline-item.panel:hover,
body[data-page="architecture"] .two-col > .panel:hover,
body[data-page="architecture"] .two-col .card:hover {
    transform: translateY(-4px) scale(1.008);
    border-color: rgba(89, 212, 255, 0.24);
    box-shadow:
        0 24px 54px rgba(0, 0, 0, 0.3),
        0 0 34px rgba(89, 212, 255, 0.08);
}

body[data-page="architecture"] .hero .panel h1,
body[data-page="architecture"] .timeline-item h4,
body[data-page="architecture"] .section-title,
body[data-page="architecture"] .card h3 {
    color: #f1ddb0;
    text-shadow: 0 10px 24px rgba(8, 14, 24, 0.18);
}

body[data-page="architecture"] .hero .panel h1 {
    max-width: 12ch;
}

.timeline {
    display: grid;
    gap: 12px;
}

.timeline-item {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 12px;
    border-left: 1px solid rgba(255, 255, 255, 0.13);
    padding-left: 14px;
}

body[data-page="architecture"] .timeline-item {
    grid-template-columns: 74px 1fr;
    gap: 18px;
    align-items: start;
    padding-left: 18px;
    border-left-color: rgba(255, 255, 255, 0.16);
}

.timeline-item .time {
    color: var(--glow-secondary);
    font-size: 0.8rem;
    letter-spacing: 0.08rem;
    text-transform: uppercase;
}

body[data-page="architecture"] .timeline-item .time {
    font-size: 0.88rem;
    font-weight: 600;
    letter-spacing: 0.16rem;
}

.timeline-item h4 {
    margin: 0;
}

body[data-page="architecture"] .timeline-item h4 {
    font-size: clamp(1.28rem, 2vw, 1.72rem);
    line-height: 1.08;
}

.timeline-item p {
    margin-top: 8px;
}

body[data-page="architecture"] .timeline-item p {
    margin-top: 12px;
    max-width: 64ch;
    color: #d0deea;
    font-size: 1rem;
    line-height: 1.72;
}

.status-bar {
    margin-top: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pill {
    border-radius: var(--radius-pill);
    padding: 7px 12px;
    border: 1px solid rgba(255, 255, 255, 0.21);
    background: rgba(255, 255, 255, 0.04);
    font-size: 0.75rem;
}

.notice {
    margin-top: 12px;
    border: 1px solid rgba(255, 187, 93, 0.22);
    border-radius: 12px;
    padding: 12px;
    color: #f6efdf;
    background: rgba(199, 164, 107, 0.08);
    font-size: 0.95rem;
}

.notice-list {
    margin: 8px 0 0;
    padding-left: 16px;
    color: #c8d5e5;
    display: grid;
    gap: 4px;
}

body[data-page="architecture"] .section-title {
    margin-bottom: 16px;
    font-size: clamp(1.5rem, 2.4vw, 2rem);
    line-height: 1.08;
}

body[data-page="architecture"] .notice-list {
    margin-top: 12px;
    padding-left: 20px;
    gap: 8px;
    line-height: 1.74;
}

body[data-page="architecture"] .card {
    padding: 18px 18px 17px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.014)),
        rgba(7, 13, 22, 0.42);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

body[data-page="architecture"] .card h3 {
    margin-bottom: 8px;
    font-size: 1.22rem;
}

body[data-page="architecture"] .card p {
    color: #cfdeea;
    line-height: 1.7;
}

body[data-page="continuity"] .hero > .panel,
body[data-page="continuity"] .two-col > .panel,
body[data-page="continuity"] .timeline-item.panel,
body[data-page="manifesto"] .hero > .panel,
body[data-page="manifesto"] .grid-3 .card {
    transition:
        transform 220ms ease,
        border-color 220ms ease,
        box-shadow 220ms ease,
        background 220ms ease;
}

body[data-page="continuity"] .hero > .panel:hover,
body[data-page="continuity"] .two-col > .panel:hover,
body[data-page="continuity"] .timeline-item.panel:hover,
body[data-page="manifesto"] .hero > .panel:hover,
body[data-page="manifesto"] .grid-3 .card:hover {
    transform: translateY(-4px) scale(1.008);
    border-color: rgba(89, 212, 255, 0.24);
    box-shadow:
        0 24px 54px rgba(0, 0, 0, 0.3),
        0 0 34px rgba(89, 212, 255, 0.08);
}

body[data-page="continuity"] .hero .panel h1,
body[data-page="continuity"] .section-title,
body[data-page="continuity"] .timeline-item h4,
body[data-page="manifesto"] .hero .panel h1,
body[data-page="manifesto"] .section-title,
body[data-page="manifesto"] .grid-3 .card h3,
body[data-page="manifesto"] .hero-side h3 {
    color: #f1ddb0;
    text-shadow: 0 10px 24px rgba(8, 14, 24, 0.18);
}

body[data-page="continuity"] .section-title,
body[data-page="manifesto"] .section-title {
    margin-bottom: 16px;
    font-size: clamp(1.5rem, 2.4vw, 2rem);
    line-height: 1.08;
}

body[data-page="continuity"] .notice-list {
    margin-top: 12px;
    padding-left: 20px;
    gap: 8px;
    line-height: 1.74;
}

body[data-page="continuity"] .timeline-item {
    grid-template-columns: 74px 1fr;
    gap: 18px;
    align-items: start;
    padding-left: 18px;
    border-left-color: rgba(255, 255, 255, 0.16);
}

body[data-page="continuity"] .timeline-item .time {
    font-size: 0.88rem;
    font-weight: 600;
    letter-spacing: 0.16rem;
}

body[data-page="continuity"] .timeline-item h4 {
    font-size: clamp(1.28rem, 2vw, 1.72rem);
    line-height: 1.08;
}

body[data-page="continuity"] .timeline-item p {
    margin-top: 12px;
    max-width: 64ch;
    color: #d0deea;
    font-size: 1rem;
    line-height: 1.72;
}

body[data-page="continuity"] .pill {
    border-color: rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.05);
    color: #d8e5f2;
}

body[data-page="manifesto"] .hero-side {
    transition:
        transform 220ms ease,
        border-color 220ms ease,
        box-shadow 220ms ease,
        background 220ms ease;
}

body[data-page="manifesto"] .hero-side:hover {
    transform: translateY(-4px) scale(1.008);
    border-color: rgba(89, 212, 255, 0.24);
    box-shadow:
        0 24px 54px rgba(0, 0, 0, 0.3),
        0 0 34px rgba(89, 212, 255, 0.08);
}

body[data-page="manifesto"] .hero-side h3,
body[data-page="manifesto"] .grid-3 .card h3 {
    font-size: clamp(1.22rem, 2vw, 1.52rem);
}

body[data-page="manifesto"] .grid-3 .card p,
body[data-page="manifesto"] .hero-side li span:last-child {
    color: #d0deea;
    line-height: 1.7;
}

body[data-page="use-cases"] .hero > .panel,
body[data-page="use-cases"] .grid-3 .card,
body[data-page="use-cases"] .two-col > .panel,
body[data-page="evidence"] .hero > .panel,
body[data-page="evidence"] .milestone-card,
body[data-page="evidence"] .grid-3 .card,
body[data-page="chat"] .hero > .panel,
body[data-page="chat"] .grid-3 .card,
body[data-page="account"] .hero > .panel,
body[data-page="account"] .grid-3 .card,
body[data-page="account"] .two-col > .panel,
body[data-page="access"] .hero > .panel,
body[data-page="access"] .two-col > .panel {
    transition:
        transform 220ms ease,
        border-color 220ms ease,
        box-shadow 220ms ease,
        background 220ms ease;
}

body[data-page="use-cases"] .hero > .panel:hover,
body[data-page="use-cases"] .grid-3 .card:hover,
body[data-page="use-cases"] .two-col > .panel:hover,
body[data-page="evidence"] .hero > .panel:hover,
body[data-page="evidence"] .milestone-card:hover,
body[data-page="evidence"] .grid-3 .card:hover,
body[data-page="chat"] .hero > .panel:hover,
body[data-page="chat"] .grid-3 .card:hover,
body[data-page="account"] .hero > .panel:hover,
body[data-page="account"] .grid-3 .card:hover,
body[data-page="account"] .two-col > .panel:hover,
body[data-page="access"] .hero > .panel:hover,
body[data-page="access"] .two-col > .panel:hover {
    transform: translateY(-4px) scale(1.008);
    border-color: rgba(89, 212, 255, 0.24);
    box-shadow:
        0 24px 54px rgba(0, 0, 0, 0.3),
        0 0 34px rgba(89, 212, 255, 0.08);
}

body[data-page="use-cases"] .hero .panel h1,
body[data-page="use-cases"] .section-title,
body[data-page="use-cases"] .grid-3 .card h3,
body[data-page="evidence"] .hero .panel h1,
body[data-page="evidence"] .milestone-title,
body[data-page="evidence"] .grid-3 .card h3,
body[data-page="chat"] .hero .panel h1,
body[data-page="chat"] .grid-3 .card h3,
body[data-page="account"] .hero .panel h1,
body[data-page="account"] .section-title,
body[data-page="account"] .grid-3 .card h3,
body[data-page="access"] .hero .panel h1,
body[data-page="access"] .section-title {
    color: #f1ddb0;
    text-shadow: 0 10px 24px rgba(8, 14, 24, 0.18);
}

body[data-page="use-cases"] .section-title,
body[data-page="evidence"] .section-title,
body[data-page="account"] .section-title,
body[data-page="access"] .section-title {
    margin-bottom: 16px;
    font-size: clamp(1.5rem, 2.4vw, 2rem);
    line-height: 1.08;
}

body[data-page="use-cases"] .grid-3 .card h3,
body[data-page="chat"] .grid-3 .card h3,
body[data-page="account"] .grid-3 .card h3,
body[data-page="evidence"] .grid-3 .card h3 {
    font-size: clamp(1.18rem, 1.9vw, 1.46rem);
}

body[data-page="use-cases"] .notice-list,
body[data-page="access"] .notice-list {
    margin-top: 12px;
    padding-left: 20px;
    gap: 8px;
    line-height: 1.74;
}

body[data-page="use-cases"] .pill,
body[data-page="evidence"] .milestone-state {
    border-color: rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.05);
    color: #d8e5f2;
}

body[data-page="evidence"] .milestone-card {
    box-shadow:
        0 18px 42px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

body[data-page="evidence"] .milestone-card:hover {
    border-color: rgba(89, 212, 255, 0.24);
}

body[data-page="evidence"] .milestone-body,
body[data-page="evidence"] .milestone-details,
body[data-page="access"] .notice,
body[data-page="chat"] .grid-3 .card p,
body[data-page="account"] .grid-3 .card p,
body[data-page="use-cases"] .grid-3 .card p,
body[data-page="use-cases"] .two-col p,
body[data-page="account"] .two-col p,
body[data-page="access"] .two-col p {
    color: #d0deea;
    line-height: 1.7;
}

form {
    display: grid;
    gap: 10px;
    margin-top: 8px;
}

input,
textarea,
select {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 12px;
    padding: 11px 12px;
    background: rgba(7, 13, 20, 0.74);
    color: var(--text-main);
    font-size: 0.95rem;
    font-family: var(--font-body);
}

textarea {
    resize: vertical;
    min-height: 130px;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: rgba(89, 212, 255, 0.55);
}

label {
    color: var(--text-soft);
    font-size: 0.85rem;
}

select option {
    background: #07111a;
}

.milestone-gallery {
    margin-top: 12px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.milestone-card {
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--radius-xl);
    padding: 14px;
    background: linear-gradient(180deg, rgba(9, 16, 24, 0.76), rgba(6, 12, 20, 0.9));
    min-height: 174px;
    transition: 190ms ease;
}

.milestone-card:hover {
    transform: translateY(-4px);
    border-color: var(--card-accent);
}

.milestone-head {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    align-items: center;
    margin-bottom: 8px;
}

.milestone-kicker {
    font-size: 0.76rem;
    letter-spacing: 0.12rem;
    text-transform: uppercase;
    color: var(--glow-secondary);
}

.milestone-state {
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 0.72rem;
}

.milestone-title {
    margin: 0;
    font-size: 1.04rem;
}

.milestone-body {
    color: #cdd9e6;
    margin-top: 8px;
    font-size: 0.94rem;
    line-height: 1.56;
}

.milestone-details {
    margin-top: 9px;
    color: #c4d1df;
    font-size: 0.82rem;
    line-height: 1.5;
}

.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition:
        opacity 460ms var(--ease),
        transform 460ms var(--ease);
}

.reveal.show {
    opacity: 1;
    transform: none;
}

.footer {
    margin-top: 24px;
    padding-bottom: 32px;
    text-align: center;
    color: var(--text-soft);
    font-size: 0.85rem;
}

.footer-return {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: rgba(232, 236, 244, 0.9);
    text-decoration: none;
    line-height: 1.72;
    border-bottom: 1px solid rgba(210, 186, 255, 0.22);
    padding-bottom: 2px;
    transition:
        color 220ms ease,
        border-color 220ms ease,
        text-shadow 220ms ease,
        transform 220ms ease;
}

.footer-return::after {
    content: "↑";
    font-size: 0.88rem;
    color: rgba(241, 221, 176, 0.92);
    opacity: 0;
    transform: translateY(3px);
    transition:
        opacity 220ms ease,
        transform 220ms ease;
}

.footer-return:hover,
.footer-return:focus-visible {
    color: #f2f7fc;
    border-bottom-color: rgba(210, 186, 255, 0.5);
    text-shadow: 0 0 16px rgba(89, 212, 255, 0.14);
    transform: translateY(-1px);
    outline: none;
}

.footer-return:hover::after,
.footer-return:focus-visible::after {
    opacity: 1;
    transform: translateY(0);
}

.footer-return:active {
    transform: translateY(0);
}

html[lang="he"] {
    --font-head: "Inter", "Segoe UI", Arial, sans-serif;
}

html[dir="rtl"] .panel,
html[dir="rtl"] .card,
html[dir="rtl"] .footer,
html[dir="rtl"] label,
html[dir="rtl"] p,
html[dir="rtl"] h1,
html[dir="rtl"] h2,
html[dir="rtl"] h3,
html[dir="rtl"] h4,
html[dir="rtl"] h5 {
    text-align: right;
}

html[dir="rtl"] input,
html[dir="rtl"] textarea,
html[dir="rtl"] select {
    text-align: right;
}

html[dir="rtl"] .hero-side li {
    flex-direction: row-reverse;
    text-align: right;
}

html[dir="rtl"] .hero-side .foot {
    flex-direction: row-reverse;
}

html[dir="rtl"] .notice-list {
    padding-left: 0;
    padding-right: 16px;
}

html[dir="rtl"] .timeline-item {
    border-left: 0;
    border-right: 1px solid rgba(255, 255, 255, 0.13);
    padding-left: 0;
    padding-right: 14px;
}

html[dir="rtl"] .actions,
html[dir="rtl"] .status-bar {
    justify-content: flex-end;
}

html[dir="rtl"] .milestone-head {
    flex-direction: row-reverse;
}

html[dir="rtl"] .formula {
    direction: ltr;
}

html[dir="rtl"] .formula-chip {
    direction: rtl;
}

@media (max-width: 1200px) {
    .hero {
        grid-template-columns: 1fr;
    }

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

    .story-band,
    .two-col,
    .grid-3,
    .milestone-gallery {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 980px) {
    :root {
        --bg-figure-position: center 56%;
        --bg-figure-size: contain;
    }

    .topbar::before,
    .topbar::after {
        width: 138px;
        height: 138px;
        top: 2px;
        opacity: 0.56;
    }

    .topbar::before {
        left: 10px;
    }

    .topbar::after {
        right: 10px;
    }

    .brand-logo {
        width: 102px;
        height: 102px;
    }

    .nav.is-open {
        width: min(272px, calc(100vw - 18px));
    }

    .nav {
        padding-top: 110px;
    }

    .nav::before {
        top: 16px;
        width: 66px;
        height: 66px;
    }

    .nav .lang-switch {
        margin-bottom: 9px;
    }

    .story-band,
    .two-col,
    .grid-3,
    .summary-grid,
    .path-grid,
    .milestone-gallery {
        grid-template-columns: 1fr;
    }

    .timeline-item {
        grid-template-columns: 1fr;
    }

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

    .hero-side {
        min-height: auto;
    }

    .hero-main {
        min-height: auto;
    }

    .hero-main-centered {
        min-height: 500px;
        padding: 28px 22px 32px;
    }

    .hero-ambient-field::before,
    .hero-ambient-field::after {
        top: 8%;
        bottom: 12%;
        width: clamp(180px, 30vw, 300px);
    }

    .hero-ambient-field::before {
        left: -12%;
        opacity: 0.32;
    }

    .hero-ambient-field::after {
        right: -12%;
        opacity: 0.3;
    }

    .hero-main-centered::before {
        inset: -18% -10%;
        opacity: 0.54;
        filter: blur(21px);
    }

    .hero-terminal {
        top: 17%;
        width: clamp(150px, 24vw, 210px);
        gap: 0.34rem;
        font-size: 0.64rem;
    }

    .hero-terminal-line:nth-child(n + 7) {
        display: none;
    }

    .hero-visual {
        margin: -12px auto 18px;
        width: min(100%, 280px);
    }

    .hero-visual-frame {
        transform: translateY(-6px);
    }

    .hero-subcard {
        max-width: 22rem;
        padding: 9px 12px;
    }

    .hero-subcard--quote {
        max-width: min(100%, 32rem);
        padding: 16px 18px 15px;
    }
}

@media (max-width: 560px) {
    :root {
        --bg-figure-position: center 62%;
        --bg-figure-size: auto 88vh;
    }

    .topbar::before,
    .topbar::after {
        width: 108px;
        height: 108px;
        top: 6px;
        opacity: 0.44;
    }

    .brand-logo {
        width: 88px;
        height: 88px;
    }

    .nav .lang-switch {
        margin-bottom: 8px;
        padding: 4px;
    }

    .nav .lang-switch-btn {
        min-width: 28px;
        height: 24px;
        font-size: 0.62rem;
    }

    .nav {
        top: 14px;
        left: 10px;
        right: auto;
        width: min(252px, calc(100vw - 16px));
        padding: 98px 10px 12px;
        border-radius: 18px;
    }

    .nav::before {
        top: 14px;
        width: 58px;
        height: 58px;
    }

    .nav a {
        padding: 12px 14px;
        font-size: 0.9rem;
        border-radius: 15px;
    }

    .mobile-menu {
        top: 74px;
        left: 14px;
        width: 36px;
        height: 36px;
    }

    .hero-main-centered {
        min-height: 460px;
        padding: 24px 18px 28px;
    }

    .hero-ambient-field {
        display: none;
    }

    .hero-main-centered::before {
        inset: -14% -8%;
        opacity: 0.42;
        filter: blur(18px);
    }

    .hero-home .hero-main h1 {
        font-size: clamp(1.85rem, 8.2vw, 2.32rem);
    }

    .hero-visual {
        margin: -8px auto 16px;
    }

    .hero-subcard--quote {
        max-width: min(100%, 28rem);
        padding: 14px 14px 13px;
        border-radius: 24px;
    }

    .hero-lead-line--quote {
        font-size: 0.96rem;
    }

    .hero-visual-frame {
        width: 168px;
        border-radius: 26px;
    }

    .hero-art-caption {
        font-size: 0.9rem;
        letter-spacing: 0.22rem;
    }

    .hero-subcard {
        max-width: 100%;
    }

    .page-media-frame--portrait {
        width: min(100%, 228px);
    }

    .page-media-frame--wide {
        width: min(100%, 100%);
    }

    main::after {
        right: 10px;
        bottom: 10px;
        padding: 5px 8px;
        font-size: 0.6rem;
        max-width: min(74vw, 240px);
        text-align: right;
    }
}

body[data-page="chat"] .page-section {
    margin-top: 26px;
}

.chat-stage {
    display: block;
}

.chat-stage-shell {
    max-width: 1240px;
    margin: 0 auto;
    padding: 30px;
    border-radius: 36px;
    background:
        linear-gradient(180deg, rgba(10, 18, 29, 0.92), rgba(7, 12, 21, 0.84)),
        radial-gradient(circle at top left, rgba(83, 198, 255, 0.12), transparent 56%),
        radial-gradient(circle at bottom right, rgba(199, 164, 107, 0.08), transparent 52%);
    box-shadow:
        0 34px 86px rgba(0, 0, 0, 0.36),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transition:
        transform 220ms ease,
        border-color 220ms ease,
        box-shadow 220ms ease,
        background 220ms ease;
}

.chat-stage-shell:hover,
.chat-stage-shell:focus-within {
    transform: translateY(-4px) scale(1.006);
    border-color: rgba(89, 212, 255, 0.25);
    box-shadow:
        0 32px 74px rgba(0, 0, 0, 0.34),
        0 0 38px rgba(89, 212, 255, 0.07);
}

.chat-stage-head {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 22px;
}

.chat-stage-copy {
    max-width: 44rem;
}

.chat-stage-copy h1 {
    margin-bottom: 16px;
    color: #f1ddb0;
    text-shadow: 0 12px 28px rgba(8, 14, 24, 0.22);
}

.chat-stage-intro {
    max-width: 62ch;
    color: #d0deea;
    line-height: 1.76;
    font-size: 1.03rem;
}

.chat-status-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
    max-width: 340px;
}

.chat-status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 8px 15px;
    border-radius: 999px;
    border: 1px solid rgba(110, 204, 255, 0.16);
    background: rgba(16, 26, 40, 0.72);
    color: #d8e8f5;
    font-size: 0.84rem;
    letter-spacing: 0.06rem;
}

.chat-status-pill#chatPreviewStatus[data-chat-state="sending"] {
    border-color: rgba(89, 212, 255, 0.34);
    color: #dff6ff;
    box-shadow: 0 0 22px rgba(89, 212, 255, 0.12);
}

.chat-status-pill#chatPreviewStatus[data-chat-state="withheld"],
.chat-status-pill#chatPreviewStatus[data-chat-state="shape_only"] {
    border-color: rgba(255, 201, 126, 0.3);
    color: #f1ddb0;
}

.chat-status-pill#chatPreviewStatus[data-chat-state="redacted"] {
    border-color: rgba(255, 154, 154, 0.34);
    color: #ffd6d6;
}

.chat-status-pill#chatPreviewStatus[data-chat-state="unavailable"] {
    border-color: rgba(255, 176, 132, 0.34);
    color: #ffd7c0;
}

.chat-status-pill--live {
    border-color: rgba(241, 221, 176, 0.34);
    color: #f1ddb0;
    box-shadow: 0 0 22px rgba(241, 221, 176, 0.08);
}

.chat-preview-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.58fr) minmax(280px, 0.7fr);
    gap: 20px;
    align-items: start;
}

.chat-live-pane {
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    min-height: 690px;
    min-width: 0;
    padding: 18px;
    gap: 14px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background:
        linear-gradient(180deg, rgba(8, 16, 27, 0.88), rgba(7, 12, 20, 0.78)),
        radial-gradient(circle at top right, rgba(89, 212, 255, 0.08), transparent 44%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.04),
        0 24px 52px rgba(0, 0, 0, 0.22);
}

.chat-log {
    min-height: 0;
    max-height: none;
    overflow: auto;
    padding: 8px 8px 12px;
    border-radius: 28px;
    background: transparent;
    scrollbar-gutter: stable;
}

.chat-msg {
    display: grid;
    gap: 8px;
    margin-bottom: 16px;
}

.chat-msg:last-child {
    margin-bottom: 0;
}

.chat-msg-meta {
    font-size: 0.74rem;
    letter-spacing: 0.14rem;
    text-transform: uppercase;
    color: rgba(209, 225, 239, 0.66);
}

.chat-msg-bubble {
    max-width: min(100%, 44rem);
    padding: 14px 16px 15px;
    border-radius: 22px;
    color: #eef5fb;
    line-height: 1.68;
    font-size: 0.98rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(17, 26, 38, 0.82);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.16);
}

.chat-msg--system .chat-msg-bubble {
    color: #d6e3ef;
    background:
        linear-gradient(180deg, rgba(15, 22, 34, 0.9), rgba(11, 18, 28, 0.84)),
        radial-gradient(circle at top right, rgba(199, 164, 107, 0.06), transparent 56%);
}

.chat-msg--garmon .chat-msg-bubble {
    border-color: rgba(241, 221, 176, 0.18);
    background:
        linear-gradient(160deg, rgba(34, 38, 51, 0.9), rgba(20, 23, 34, 0.78)),
        radial-gradient(circle at top right, rgba(241, 221, 176, 0.08), transparent 55%);
    color: #f4f7fb;
}

.chat-msg--user {
    justify-items: end;
}

.chat-msg--user .chat-msg-meta {
    text-align: right;
}

.chat-msg--user .chat-msg-bubble {
    border-color: rgba(89, 212, 255, 0.24);
    background:
        linear-gradient(180deg, rgba(24, 60, 84, 0.9), rgba(20, 45, 65, 0.78)),
        radial-gradient(circle at top left, rgba(89, 212, 255, 0.08), transparent 55%);
}

.chat-composer-shell {
    position: sticky;
    bottom: 0;
    display: grid;
    gap: 10px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background:
        linear-gradient(180deg, rgba(8, 14, 24, 0), rgba(8, 14, 24, 0.88) 24%, rgba(8, 14, 24, 0.96) 100%);
}

.chat-composer {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: end;
    margin-top: 0;
}

.chat-composer-field {
    display: grid;
    gap: 8px;
}

.chat-composer-label {
    color: #f1ddb0;
    font-size: 0.82rem;
    letter-spacing: 0.14rem;
    text-transform: uppercase;
}

.chat-composer-input {
    min-height: 58px;
    padding-inline: 18px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(10, 18, 29, 0.9);
    color: #eef5fb;
    transition:
        border-color 180ms ease,
        box-shadow 180ms ease,
        background 180ms ease;
}

.chat-composer-input:focus {
    border-color: rgba(89, 212, 255, 0.38);
    box-shadow: 0 0 0 4px rgba(89, 212, 255, 0.08);
    background: rgba(12, 21, 34, 0.96);
}

.chat-composer-submit {
    min-width: 154px;
    min-height: 58px;
}

.chat-composer.is-pending .chat-composer-submit,
.chat-composer-shell .chat-composer-submit:disabled {
    opacity: 0.74;
    cursor: wait;
}

.chat-composer-note {
    margin: 0;
    color: rgba(209, 225, 239, 0.72);
    line-height: 1.66;
    font-size: 0.92rem;
}

.chat-side-column {
    display: grid;
    gap: 16px;
    align-self: stretch;
    max-width: 320px;
    width: 100%;
    justify-self: end;
}

.chat-side-card {
    padding: 18px;
    border-radius: 26px;
    background:
        linear-gradient(180deg, rgba(12, 18, 30, 0.9), rgba(8, 14, 22, 0.82)),
        radial-gradient(circle at top left, rgba(89, 212, 255, 0.05), transparent 48%);
    transition:
        transform 220ms ease,
        border-color 220ms ease,
        box-shadow 220ms ease,
        background 220ms ease;
}

.chat-side-card:hover,
.chat-side-card:focus-within {
    transform: translateY(-4px) scale(1.008);
    border-color: rgba(89, 212, 255, 0.24);
    box-shadow:
        0 24px 54px rgba(0, 0, 0, 0.3),
        0 0 34px rgba(89, 212, 255, 0.08);
}

.chat-presence-card {
    text-align: center;
}

.chat-presence-image {
    object-position: center 18%;
}

.chat-side-kicker {
    margin: 0 0 14px;
    color: #f1ddb0;
    font-size: 0.78rem;
    letter-spacing: 0.18rem;
    text-transform: uppercase;
}

.chat-side-chipset {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.chat-side-chip {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 6px 11px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    color: rgba(231, 241, 250, 0.86);
    font-size: 0.74rem;
    letter-spacing: 0.06rem;
}

.chat-kv-list {
    display: grid;
    gap: 12px;
}

.chat-kv-row {
    display: grid;
    grid-template-columns: minmax(90px, 112px) minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.chat-kv-row:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.chat-kv-label {
    color: rgba(209, 225, 239, 0.62);
    font-size: 0.84rem;
    letter-spacing: 0.08rem;
    text-transform: uppercase;
}

.chat-kv-value {
    color: #e9f1f8;
    line-height: 1.62;
}

.chat-signal-list {
    margin: 0;
}

body[data-page="chat"] .chat-signal-list li {
    color: #d0deea;
}

body[data-page="chat"] .grid-3 {
    align-items: stretch;
}

body[data-page="chat"] .grid-3 .card {
    background:
        linear-gradient(180deg, rgba(10, 17, 28, 0.86), rgba(7, 13, 22, 0.8)),
        radial-gradient(circle at top left, rgba(241, 221, 176, 0.05), transparent 46%);
}

body[data-page="account"] main {
    padding-top: 10px;
}

body[data-page="account"] .page-section {
    margin-top: 14px;
}

.account-hero {
    grid-template-columns: minmax(0, 1.24fr) minmax(300px, 0.92fr);
    gap: 14px;
    align-items: start;
}

body[data-page="account"] .account-hero > .panel,
.account-dashboard > .panel,
.account-dashboard > .card {
    padding: clamp(0.95rem, 1.5vw, 1.25rem);
    border-radius: 28px;
}

.account-hero-main {
    display: grid;
    gap: 10px;
}

.account-hero-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.account-hero-copy {
    display: grid;
    gap: 6px;
}

body[data-page="account"] .hero .panel h1 {
    margin: 0;
    font-size: clamp(2rem, 3.1vw, 2.68rem);
    line-height: 0.96;
}

.account-preview-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    min-height: 30px;
    padding: 6px 12px;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(241, 221, 176, 0.22);
    background: rgba(241, 221, 176, 0.06);
    color: #f1ddb0;
    font-size: 0.74rem;
    letter-spacing: 0.08rem;
    text-transform: uppercase;
}

.account-hero-body,
.account-profile-intro {
    max-width: 58ch;
    margin: 0;
    color: #d0deea;
    font-size: 0.96rem;
    line-height: 1.58;
}

.account-summary-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.account-summary-pills .pill {
    padding: 6px 10px;
    font-size: 0.72rem;
    background: rgba(255, 255, 255, 0.045);
}

.account-hero-actions {
    gap: 10px;
}

.account-hero-actions .btn {
    min-height: 40px;
    padding-inline: 18px;
}

.account-preview-note {
    margin: 0;
    color: rgba(208, 222, 234, 0.78);
    font-size: 0.86rem;
    line-height: 1.5;
}

.account-hero-side {
    display: grid;
    gap: 12px;
    align-content: start;
}

.account-side-kicker {
    margin: 0;
    color: #f1ddb0;
    font-size: 0.72rem;
    letter-spacing: 0.16rem;
    text-transform: uppercase;
}

.account-hero-side-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.account-stat-card {
    padding: 12px 13px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(8, 15, 25, 0.64);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.account-stat-label,
.account-field-label {
    display: block;
    margin-bottom: 5px;
    color: rgba(209, 225, 239, 0.62);
    font-size: 0.73rem;
    letter-spacing: 0.08rem;
    text-transform: uppercase;
}

.account-stat-value,
.account-field-value {
    color: #eef4fb;
    line-height: 1.38;
}

.account-dashboard {
    display: grid;
    grid-template-columns: 1.16fr 1.16fr 0.94fr;
    gap: 14px;
    align-items: start;
}

.account-grid-span-2 {
    grid-column: span 2;
}

.account-profile-grid {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 16px;
    align-items: start;
}

.account-avatar {
    width: 88px;
    height: 88px;
    border-radius: 24px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(241, 221, 176, 0.2);
    background:
        linear-gradient(160deg, rgba(12, 29, 43, 0.86), rgba(11, 18, 28, 0.88)),
        radial-gradient(circle at 50% 22%, rgba(89, 212, 255, 0.12), transparent 42%);
    color: #f1ddb0;
    font-family: var(--font-head);
    font-size: 2rem;
    box-shadow:
        0 14px 26px rgba(0, 0, 0, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.account-profile-copy {
    display: grid;
    gap: 12px;
}

.account-profile-card .section-title,
.account-state-card .section-title,
.account-permissions-shell .section-title,
.account-quota-shell .section-title,
.account-mini-card h3,
.account-action-card h3 {
    margin-bottom: 0;
    font-size: clamp(1.12rem, 1.7vw, 1.42rem);
    line-height: 1.06;
}

.account-section-head {
    margin-bottom: 10px;
}

.account-fields {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.account-field,
.account-about-card {
    padding: 11px 12px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(8, 15, 25, 0.54);
}

.account-about-text {
    margin: 6px 0 0;
    color: #d0deea;
    line-height: 1.62;
}

.account-state-stack {
    display: grid;
    gap: 8px;
}

.account-state-row {
    display: grid;
    grid-template-columns: minmax(104px, 134px) minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.account-state-row:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.account-status-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.account-status-chip {
    min-height: 30px;
    padding: 6px 11px;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.05);
    color: #dbe7f1;
    font-size: 0.78rem;
}

.account-status-chip--pending {
    border-color: rgba(241, 221, 176, 0.26);
    color: #f1ddb0;
}

.account-status-chip--approved {
    border-color: rgba(114, 221, 176, 0.26);
    color: #b6f0d3;
}

.account-status-chip--revoked,
.account-status-chip--blocked {
    border-color: rgba(255, 138, 138, 0.24);
    color: #ffbcbc;
}

.account-permissions-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.account-permission-card {
    padding: 13px 14px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background:
        linear-gradient(180deg, rgba(10, 18, 29, 0.82), rgba(6, 12, 22, 0.78)),
        radial-gradient(circle at top right, rgba(89, 212, 255, 0.05), transparent 44%);
}

.account-permission-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.account-permission-stats {
    display: grid;
    gap: 6px;
    justify-items: end;
}

.account-domain-stat {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 4px 9px;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.05);
    font-size: 0.72rem;
    white-space: nowrap;
}

.account-domain-stat--allow {
    border-color: rgba(114, 221, 176, 0.2);
    color: #b6f0d3;
}

.account-domain-stat--deny {
    border-color: rgba(255, 138, 138, 0.18);
    color: #ffbcbc;
}

.account-permission-card h3 {
    margin: 2px 0 0;
    color: #f1ddb0;
    font-size: clamp(1.02rem, 1.45vw, 1.2rem);
}

.account-permission-card p {
    margin: 6px 0 0;
    color: #d0deea;
    font-size: 0.92rem;
    line-height: 1.56;
}

.account-permission-list {
    list-style: none;
    margin: 10px 0 0;
    padding: 0;
    display: grid;
    gap: 8px;
}

.account-permission-list--extra,
.account-capability-list--extra {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.account-permission-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: start;
}

.account-permission-name {
    color: #e7eff6;
    line-height: 1.48;
}

.account-permission-state {
    min-width: 76px;
    text-align: center;
    padding: 5px 9px;
    border-radius: var(--radius-pill);
    font-size: 0.74rem;
    letter-spacing: 0.03rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.05);
}

.account-permission-state--allow {
    border-color: rgba(114, 221, 176, 0.24);
    color: #b6f0d3;
}

.account-permission-state--deny {
    border-color: rgba(255, 138, 138, 0.22);
    color: #ffbcbc;
}

.account-compact-details {
    margin-top: 8px;
}

.account-inline-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    color: #cbe3f5;
    font-size: 0.78rem;
    line-height: 1.3;
    list-style: none;
    transition: color 180ms ease;
}

.account-inline-toggle::-webkit-details-marker {
    display: none;
}

.account-inline-toggle::after {
    content: "↓";
    font-size: 0.72rem;
    transition: transform 180ms ease;
}

.account-compact-details[open] .account-inline-toggle::after {
    transform: rotate(180deg);
}

.account-inline-toggle:hover {
    color: #f1ddb0;
}

.account-quota-card {
    display: grid;
    gap: 12px;
}

.account-quota-top {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.account-quota-progress {
    width: 100%;
    height: 10px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.account-quota-progress-bar {
    height: 100%;
    width: 12%;
    border-radius: inherit;
    background:
        linear-gradient(90deg, rgba(89, 212, 255, 0.8), rgba(199, 164, 107, 0.7));
    box-shadow: 0 0 18px rgba(89, 212, 255, 0.18);
}

.account-mini-card,
.account-action-card {
    min-height: 0;
}

.account-capability-list {
    margin-top: 8px;
    display: grid;
    gap: 6px;
}

body[data-page="account"] .account-capability-list li {
    color: #d0deea;
    line-height: 1.52;
}

.account-action-card p {
    margin: 10px 0 14px;
}

.account-action-actions {
    margin-top: auto;
}

.account-action-actions .btn {
    width: 100%;
}

body[data-page="account"] main {
    padding-top: 8px;
}

body[data-page="account"] .page-section {
    margin-top: 12px;
}

.account-strip {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
}

.account-strip-panel,
.account-sidebar-card,
.account-main > .panel,
.account-main > .card,
.account-summary-row > .card,
.account-availability-row > .card,
.account-permission-card {
    padding: clamp(0.9rem, 1.35vw, 1.15rem);
    border-radius: 26px;
    transition:
        transform 220ms ease,
        border-color 220ms ease,
        box-shadow 220ms ease,
        background 220ms ease;
}

.account-strip-panel:hover,
.account-sidebar-card:hover,
.account-main > .panel:hover,
.account-main > .card:hover,
.account-summary-row > .card:hover,
.account-availability-row > .card:hover,
.account-permission-card:hover {
    transform: translateY(-4px) scale(1.008);
    border-color: rgba(89, 212, 255, 0.24);
    box-shadow:
        0 24px 54px rgba(0, 0, 0, 0.3),
        0 0 34px rgba(89, 212, 255, 0.08);
}

.account-strip-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.account-strip-copy {
    display: grid;
    gap: 6px;
}

.account-strip-topline {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

body[data-page="account"] .hero .panel h1 {
    font-size: clamp(1.74rem, 2.4vw, 2.12rem);
    line-height: 0.98;
}

.account-preview-badge {
    min-height: 28px;
    padding: 5px 11px;
    font-size: 0.72rem;
}

.account-strip-body {
    max-width: 62ch;
    margin: 0;
    color: #d0deea;
    font-size: 0.92rem;
    line-height: 1.56;
}

.account-strip-actions {
    gap: 9px;
    flex-shrink: 0;
}

.account-strip-actions .btn,
.account-action-actions .btn {
    min-height: 38px;
    padding-inline: 16px;
}

[data-account-chat-link][hidden] {
    display: none !important;
}

.account-cabinet {
    display: grid;
    grid-template-columns: minmax(300px, 340px) minmax(0, 1fr);
    gap: 14px;
    align-items: start;
}

.account-sidebar {
    display: grid;
    gap: 12px;
    align-self: start;
    position: sticky;
    top: 108px;
}

.account-main {
    display: grid;
    gap: 12px;
    align-items: start;
}

.account-identity-top {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
}

.account-avatar {
    width: 76px;
    height: 76px;
    border-radius: 22px;
    font-size: 1.75rem;
}

.account-identity-copy {
    display: grid;
    gap: 4px;
}

.account-identity-name {
    color: #eef4fb;
    font-size: 1.24rem;
    line-height: 1.08;
}

.account-identity-meta {
    margin: 0;
    color: #d0deea;
    font-size: 0.92rem;
    line-height: 1.46;
    word-break: break-word;
}

.account-about-shell .account-about-text {
    margin-top: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 0.92rem;
    line-height: 1.56;
}

.account-about-details {
    margin-top: 8px;
}

.account-about-text--extra {
    display: block !important;
    -webkit-line-clamp: initial;
    -webkit-box-orient: initial;
    overflow: visible;
    margin-top: 8px;
}

.account-stat-label,
.account-field-label,
.account-summary-label {
    font-size: 0.71rem;
}

.account-section-head {
    margin-bottom: 10px;
}

.account-section-head--compact {
    margin-bottom: 8px;
}

.account-access-stack {
    display: grid;
    gap: 8px;
}

.account-state-row {
    grid-template-columns: minmax(104px, 128px) minmax(0, 1fr);
    padding-bottom: 7px;
}

.account-quota-card {
    gap: 10px;
}

.account-action-card h3,
.account-mini-card h3,
.account-permissions-shell .section-title,
.account-access-card .section-title,
.account-quota-shell .section-title {
    margin-bottom: 0;
    font-size: clamp(1.04rem, 1.45vw, 1.26rem);
    line-height: 1.08;
}

.account-action-actions {
    gap: 8px;
    margin-top: 10px;
}

.account-summary-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.account-summary-mini {
    padding: 11px 12px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background:
        linear-gradient(180deg, rgba(10, 18, 29, 0.8), rgba(6, 12, 22, 0.78)),
        radial-gradient(circle at top left, rgba(241, 221, 176, 0.04), transparent 42%);
}

.account-summary-value {
    color: #f1ddb0;
    font-size: 1.26rem;
    line-height: 1.04;
}

.account-permission-card {
    padding: 12px 13px;
}

.account-permission-card h3 {
    font-size: clamp(1rem, 1.3vw, 1.14rem);
}

.account-permission-card p {
    margin: 5px 0 0;
    font-size: 0.9rem;
    line-height: 1.5;
}

.account-permission-list {
    gap: 7px;
}

.account-permission-name {
    line-height: 1.44;
}

.account-permission-state {
    min-width: 74px;
    font-size: 0.72rem;
}

.account-availability-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.account-mini-card,
.account-action-card {
    padding: 13px 14px;
    border-radius: 22px;
}

.account-capability-list {
    margin-top: 8px;
    gap: 6px;
    line-height: 1.5;
}

@media (max-width: 1100px) {
    .chat-stage-head,
    .chat-preview-layout,
    .chat-composer {
        grid-template-columns: 1fr;
    }

    .chat-stage-head {
        display: grid;
    }

    .chat-status-strip {
        justify-content: flex-start;
        max-width: none;
    }

    .chat-composer-submit {
        width: 100%;
    }

    .chat-side-column {
        max-width: none;
        justify-self: stretch;
    }

    .account-hero,
    .account-dashboard {
        grid-template-columns: 1fr 1fr;
    }

    .account-grid-span-2 {
        grid-column: span 2;
    }

    .account-hero-side-grid,
    .account-permissions-grid,
    .account-quota-top {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 640px) {
    .chat-stage-shell {
        padding: 22px 16px;
        border-radius: 28px;
    }

    .chat-stage-copy h1 {
        font-size: clamp(1.9rem, 9vw, 2.45rem);
    }

    .chat-log {
        min-height: 320px;
        padding: 4px 2px 8px;
        border-radius: 22px;
    }

    .chat-msg-bubble {
        padding: 12px 13px;
        border-radius: 18px;
        font-size: 0.94rem;
    }

    .chat-live-pane {
        min-height: 580px;
        padding: 14px;
        border-radius: 24px;
    }

    .chat-composer-shell {
        padding-top: 12px;
    }

    .chat-status-pill {
        width: 100%;
        justify-content: flex-start;
    }

    .chat-side-card {
        padding: 16px;
    }

    .account-hero,
    .account-dashboard,
    .account-permissions-grid,
    .account-fields,
    .account-quota-top {
        grid-template-columns: 1fr;
    }

    .account-grid-span-2 {
        grid-column: auto;
    }

    .account-hero-topline {
        align-items: flex-start;
        flex-direction: column;
    }

    .account-hero-actions {
        width: 100%;
    }

    .account-hero-actions .btn {
        width: 100%;
    }

    .account-profile-grid,
    .account-state-row {
        grid-template-columns: 1fr;
    }

    .account-avatar {
        width: 92px;
        height: 92px;
        border-radius: 24px;
        font-size: 2rem;
    }

    .account-permission-row {
        grid-template-columns: 1fr;
    }

    .account-permission-top {
        flex-direction: column;
    }

    .account-permission-stats {
        justify-items: start;
    }

    .account-permission-state {
        width: fit-content;
    }
}

@media (max-width: 1120px) {
    .account-cabinet {
        grid-template-columns: 1fr;
    }

    .account-sidebar {
        position: static;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .account-action-card {
        grid-column: span 2;
    }

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

@media (max-width: 860px) {
    .account-strip-head,
    .account-permission-top {
        flex-direction: column;
        align-items: flex-start;
    }

    .account-strip-actions,
    .account-action-actions {
        width: 100%;
    }

    .account-strip-actions .btn,
    .account-action-actions .btn {
        width: 100%;
    }

    .account-sidebar,
    .account-permissions-grid,
    .account-availability-row,
    .account-quota-top {
        grid-template-columns: 1fr;
    }

    .account-action-card {
        grid-column: auto;
    }

    .account-state-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .account-strip-panel,
    .account-sidebar-card,
    .account-main > .panel,
    .account-main > .card,
    .account-permission-card {
        padding: 14px;
        border-radius: 22px;
    }

    .account-summary-row,
    .account-permissions-grid,
    .account-availability-row {
        grid-template-columns: 1fr;
    }

    .account-identity-top {
        grid-template-columns: 1fr;
        justify-items: start;
    }

    .account-avatar {
        width: 82px;
        height: 82px;
        border-radius: 24px;
        font-size: 1.9rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mesh,
    .reveal,
    body {
        animation: none;
        transition: none;
        transform: none;
    }

    .reveal {
        opacity: 1;
    }

    .hero-main-centered,
    .hero-main-centered::before,
    .hero-main-centered::after,
    .hero-ambient-field::before,
    .hero-ambient-field::after,
    .hero-terminal--left,
    .hero-terminal--right,
    .hero-visual-glow,
    .hero-visual-frame,
    .chat-stage-shell,
    .chat-side-card,
    .chat-status-pill {
        animation: none;
        transition: none;
    }

    .hero-main-centered:hover,
    .hero-main-centered:focus-within,
    .hero-main-centered:hover .hero-visual-frame,
    .hero-main-centered:focus-within .hero-visual-frame,
    .chat-stage-shell:hover,
    .chat-stage-shell:focus-within,
    .chat-side-card:hover,
    .chat-side-card:focus-within {
        transform: none;
        filter: none;
    }
}

