:root {
    --color-void: #0A0A0C;
    --surface-card: #111115;
    --surface-elevated: #16161C;
    --surface-inset: #17171c;

    --rim-inset: rgba(255, 255, 255, 0.06);
    --horizon-glow: rgba(255, 255, 255, 0.12);

    --color-lumen: rgba(255, 255, 255, 0.85);
    --color-muted: rgba(255, 255, 255, 0.42);
    --color-dim: rgba(255, 255, 255, 0.18);

    --color-primary: #e5d083;
    --color-primary-dim: rgba(229, 208, 131, 0.12);
    --color-primary-glow: rgba(229, 208, 131, 0.35);

    --font-display: 'Instrument Serif', serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    --motion-slow: 600ms cubic-bezier(.15, .83, .66, 1);
    --motion-quick: 200ms ease;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--color-void);
    color: var(--color-lumen);
    font-family: var(--font-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* --- Page Preloader Styles --- */
#page-preloader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: #0A0A0C;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 28px;
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

#page-preloader.hide {
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
}

.prl-avatar-wrap {
    position: relative;
    width: 96px;
    height: 96px;
}

.prl-avatar-wrap img {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    animation: prlAvatarWake 2.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes prlAvatarWake {
    0% {
        filter: blur(14px) brightness(0.15);
        transform: scale(0.82);
    }

    55% {
        filter: blur(3px) brightness(0.65);
        transform: scale(1.03);
    }

    100% {
        filter: blur(0) brightness(1);
        transform: scale(1);
    }
}

.prl-pulse-ring {
    position: absolute;
    inset: -12px;
    border-radius: 50%;
    border: 1.5px solid rgba(229, 208, 131, 0.45);
    animation: prlPulseRing 2.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes prlPulseRing {
    0% {
        opacity: 0;
        transform: scale(0.75);
    }

    55% {
        opacity: 0.6;
        box-shadow: 0 0 30px rgba(229, 208, 131, 0.15);
    }

    100% {
        opacity: 1;
        transform: scale(1);
        box-shadow: 0 0 60px rgba(229, 208, 131, 0.35);
    }
}

.prl-type-text {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12.5px;
    color: rgba(255, 255, 255, 0.38);
    letter-spacing: 0.04em;
    overflow: hidden;
    white-space: nowrap;
    width: 0;
    animation: prlTypeReveal 0.7s steps(24, end) 0.4s forwards;
}

@keyframes prlTypeReveal {
    from {
        width: 0;
    }

    to {
        width: 22ch;
    }
}

.prl-orbit-stage {
    position: relative;
    width: 240px;
    height: 240px;
}

.prl-orbit-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200px;
    height: 200px;
    margin: -100px;
    border-radius: 50%;
    border: 1px solid rgba(229, 208, 131, 0.14);
    animation: prlRingCollapse 1.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes prlRingCollapse {
    0% {
        width: 200px;
        height: 200px;
        margin: -100px;
        opacity: 0.7;
    }

    100% {
        width: 0;
        height: 0;
        margin: 0;
        opacity: 0;
    }
}

.prl-dot {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 9px;
    height: 9px;
    margin: -4.5px;
    border-radius: 50%;
    background: #e5d083;
    box-shadow: 0 0 10px rgba(229, 208, 131, 0.4);
}

.prl-dot:nth-child(2) {
    animation: prlDot1 1.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.prl-dot:nth-child(3) {
    animation: prlDot2 1.4s cubic-bezier(0.16, 1, 0.3, 1) 0.06s forwards;
}

.prl-dot:nth-child(4) {
    animation: prlDot3 1.4s cubic-bezier(0.16, 1, 0.3, 1) 0.04s forwards;
}

.prl-dot:nth-child(5) {
    animation: prlDot4 1.4s cubic-bezier(0.16, 1, 0.3, 1) 0.09s forwards;
}

.prl-dot:nth-child(6) {
    animation: prlDot5 1.4s cubic-bezier(0.16, 1, 0.3, 1) 0.02s forwards;
}

.prl-dot:nth-child(7) {
    animation: prlDot6 1.4s cubic-bezier(0.16, 1, 0.3, 1) 0.07s forwards;
}

@keyframes prlDot1 {
    0% {
        transform: translate(96px, 0);
        opacity: 1
    }

    80% {
        transform: translate(2px, 0);
        opacity: .8
    }

    100% {
        transform: translate(0, 0);
        opacity: 0
    }
}

@keyframes prlDot2 {
    0% {
        transform: translate(48px, 83px);
        opacity: 1
    }

    80% {
        transform: translate(1px, 2px);
        opacity: .8
    }

    100% {
        transform: translate(0, 0);
        opacity: 0
    }
}

@keyframes prlDot3 {
    0% {
        transform: translate(-48px, 83px);
        opacity: 1
    }

    80% {
        transform: translate(-1px, 2px);
        opacity: .8
    }

    100% {
        transform: translate(0, 0);
        opacity: 0
    }
}

@keyframes prlDot4 {
    0% {
        transform: translate(-96px, 0);
        opacity: 1
    }

    80% {
        transform: translate(-2px, 0);
        opacity: .8
    }

    100% {
        transform: translate(0, 0);
        opacity: 0
    }
}

@keyframes prlDot5 {
    0% {
        transform: translate(-48px, -83px);
        opacity: 1
    }

    80% {
        transform: translate(-1px, -2px);
        opacity: .8
    }

    100% {
        transform: translate(0, 0);
        opacity: 0
    }
}

@keyframes prlDot6 {
    0% {
        transform: translate(48px, -83px);
        opacity: 1
    }

    80% {
        transform: translate(1px, -2px);
        opacity: .8
    }

    100% {
        transform: translate(0, 0);
        opacity: 0
    }
}

.prl-orbit-avatar {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 68px;
    height: 68px;
    border-radius: 50%;
    overflow: hidden;
    border: 1.5px solid rgba(229, 208, 131, 0.6);
    box-shadow: 0 0 40px rgba(229, 208, 131, 0.3);
    animation: prlAvatarPop 0.5s cubic-bezier(0.16, 1, 0.3, 1) 1.3s forwards;
}

.prl-orbit-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@keyframes prlAvatarPop {
    from {
        transform: translate(-50%, -50%) scale(0);
        opacity: 0;
    }

    to {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
}

.prl-clarity-logo {
    font-family: 'Instrument Serif', serif;
    font-style: italic;
    font-size: 76px;
    color: #e5d083;
    position: relative;
    z-index: 3;
    animation: prlClarityFocus 1.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes prlClarityFocus {
    0% {
        filter: blur(18px) brightness(0.25);
        letter-spacing: 0.6em;
        opacity: 0;
    }

    40% {
        filter: blur(7px) brightness(0.6);
        letter-spacing: 0.18em;
        opacity: 0.7;
    }

    100% {
        filter: blur(0) brightness(1);
        letter-spacing: 0.02em;
        opacity: 1;
    }
}

.prl-clarity-grain {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 2;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.09'/%3E%3C/svg%3E");
    background-size: 180px;
    animation: prlGrainFade 1.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes prlGrainFade {
    0% {
        opacity: 0.75;
    }

    100% {
        opacity: 0.02;
    }
}

.prl-clarity-sub {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11.5px;
    color: rgba(255, 255, 255, 0.35);
    letter-spacing: 0.22em;
    text-transform: uppercase;
    z-index: 3;
    animation: prlSubFade 1.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes prlSubFade {
    0% {
        opacity: 0;
        filter: blur(8px);
    }

    50% {
        opacity: 0;
    }

    100% {
        opacity: 1;
        filter: blur(0);
    }
}

.prl-sleep-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.prl-sleep-name {
    font-family: 'Instrument Serif', serif;
    font-style: italic;
    font-size: 52px;
    color: #e5d083;
    animation: prlSleepFloat 2s ease-in-out infinite;
}

@keyframes prlSleepFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-7px);
    }
}

.prl-zzz {
    position: absolute;
    font-family: 'JetBrains Mono', monospace;
    color: rgba(229, 208, 131, 0.45);
    animation: prlZzzFloat 3s ease-in-out infinite;
}

.prl-zzz:nth-child(2) {
    font-size: 10px;
    left: calc(100% + 4px);
    top: 2px;
    animation-delay: 0s;
}

.prl-zzz:nth-child(3) {
    font-size: 12px;
    left: calc(100% + 14px);
    top: -14px;
    animation-delay: 0.5s;
}

.prl-zzz:nth-child(4) {
    font-size: 14px;
    left: calc(100% + 22px);
    top: -32px;
    animation-delay: 1s;
}

@keyframes prlZzzFloat {
    0% {
        opacity: 0;
    }

    20% {
        opacity: 0.8;
    }

    100% {
        opacity: 0;
        transform: translateY(-22px);
    }
}

.prl-sleep-caption {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.35);
}

.prl-bar-wrap {
    width: 220px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.prl-bar-track {
    width: 100%;
    height: 2px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 99px;
    overflow: hidden;
}

.prl-bar-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, rgba(229, 208, 131, 0.55), #e5d083);
    border-radius: 99px;
    box-shadow: 0 0 8px rgba(229, 208, 131, 0.45);
    animation: prlBarFill 1.5s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.2s;
}

@keyframes prlBarFill {
    0% {
        width: 0%;
    }

    100% {
        width: 100%;
    }
}

.prl-bar-pct {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.2);
    text-align: right;
}

/* --- Ambient Canvas --- */
.ambient-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.ambient-nebula-1 {
    position: absolute;
    left: -15%;
    top: -20%;
    width: 70vw;
    height: 70vh;
    background: radial-gradient(ellipse 50% 50% at 50% 50%, rgba(229, 208, 131, 0.06), transparent 70%);
    filter: blur(40px);
}

.container {
    max-width: 1040px;
    margin: 0 auto;
    padding: 0 28px;
    position: relative;
    z-index: 1;
}

/* --- Header Navigation (Lovevsick Floating Shrink Style) --- */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 18px 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

header.scrolled {
    padding: 10px 0;
}

.nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 40px;
    background: rgba(17, 17, 21, 0);
    border: 1px solid rgba(255, 255, 255, 0);
    border-radius: 99px;
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    box-shadow: 0 0 0 transparent;
    transition: max-width 0.45s cubic-bezier(0.16, 1, 0.3, 1),
        height 0.45s cubic-bezier(0.16, 1, 0.3, 1),
        padding 0.45s cubic-bezier(0.16, 1, 0.3, 1),
        background 0.4s ease,
        border-color 0.4s ease,
        box-shadow 0.4s ease;
}

/* Stage 1: Scrolled a little bit (Adds glass blur & subtle border at full width) */
header.sticky-state .nav-inner {
    background: rgba(17, 17, 21, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-color: var(--rim-inset);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

/* Stage 2: Scroll deeper (~2 nấc scroll / > 180px) -> Collapses into floating centered pill */
header.scrolled .nav-inner {
    max-width: 860px;
    height: 52px;
    padding: 0 24px;
    background: rgba(17, 17, 21, 0.88);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-color: var(--rim-inset);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7), 0 0 20px rgba(229, 208, 131, 0.1);
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--color-lumen);
    font-weight: 600;
    font-size: 14px;
}

.brand-logo img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
}

.brand-sub {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--color-muted);
    font-weight: 400;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
    font-size: 13px;
}

.nav-links a {
    color: var(--color-muted);
    text-decoration: none;
    transition: color var(--motion-quick);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--color-lumen);
}

.nav-links a.active {
    color: var(--color-primary);
}

.btn-invite {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: 99px;
    background: linear-gradient(180deg, rgba(229, 208, 131, 0.95), #c4b16f);
    color: #0A0A0C;
    font-size: 12.5px;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--motion-quick);
}

.btn-invite:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(229, 208, 131, 0.3);
}

/* --- Main Layout --- */
main {
    padding-top: 130px;
    padding-bottom: 90px;
}

/* --- Compact Commands Hero --- */
.cmd-hero {
    margin-bottom: 36px;
}

.cmd-eyebrow {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-primary);
    margin-bottom: 8px;
}

.cmd-title {
    font-family: var(--font-display);
    font-size: clamp(36px, 4vw, 48px);
    font-weight: 400;
    line-height: 1.1;
    margin-bottom: 10px;
}

.cmd-desc {
    font-size: 15px;
    color: var(--color-muted);
    max-width: 520px;
}

.cmd-subline {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--color-dim);
    margin-top: 6px;
}

/* --- Search & Controls Bar --- */
.controls-wrapper {
    margin-bottom: 36px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.search-box {
    position: relative;
    width: 100%;
}

.search-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-muted);
    pointer-events: none;
}

.search-input {
    width: 100%;
    padding: 16px 20px 16px 50px;
    background: var(--surface-card);
    border: 1px solid var(--rim-inset);
    border-radius: 14px;
    color: var(--color-lumen);
    font-family: var(--font-body);
    font-size: 14px;
    outline: none;
    transition: all 0.25s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.search-input:focus {
    border-color: rgba(229, 208, 131, 0.4);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.6), 0 0 16px rgba(229, 208, 131, 0.1);
}

.quick-popular {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 12px;
    color: var(--color-muted);
}

.popular-tag {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--color-muted);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--rim-inset);
    padding: 3px 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.popular-tag:hover {
    color: var(--color-primary);
    border-color: rgba(229, 208, 131, 0.3);
    background: rgba(229, 208, 131, 0.06);
}

/* --- Category Pills --- */
.category-pills {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
}

.category-pills::-webkit-scrollbar {
    display: none;
}

.cat-pill {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--color-muted);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--rim-inset);
    padding: 8px 18px;
    border-radius: 99px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.25s ease;
}

.cat-pill:hover {
    color: var(--color-lumen);
    border-color: rgba(255, 255, 255, 0.15);
}

.cat-pill.active {
    color: #0A0A0C;
    background: var(--color-primary);
    border-color: var(--color-primary);
    font-weight: 600;
}

/* --- Category Section & Command Cards --- */
.category-block {
    margin-bottom: 48px;
}

.category-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--rim-inset);
}

.cat-title-group {
    display: flex;
    align-items: baseline;
    gap: 12px;
}

.cat-name {
    font-size: 18px;
    font-weight: 600;
    color: var(--color-lumen);
}

.cat-subtitle {
    font-size: 13px;
    color: var(--color-muted);
}

.cat-count {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--color-dim);
}

.cmd-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* --- Expandable Command Card --- */
.cmd-card {
    background: var(--surface-card);
    border: 1px solid var(--rim-inset);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.25s ease;
}

.cmd-card:hover {
    border-color: rgba(255, 255, 255, 0.12);
    background: var(--surface-elevated);
}

.cmd-summary {
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    cursor: pointer;
    user-select: none;
}

.cmd-left {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.cmd-name {
    font-family: var(--font-mono);
    font-size: 14px;
    font-weight: 600;
    color: var(--color-primary);
}

.cmd-short-desc {
    font-size: 13.5px;
    color: var(--color-muted);
}

.cmd-meta-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.status-badge {
    font-family: var(--font-mono);
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 4px;
    text-transform: lowercase;
}

.badge-available {
    background: rgba(67, 181, 129, 0.1);
    color: #43b581;
    border: 1px solid rgba(67, 181, 129, 0.2);
}

.badge-planned {
    background: rgba(229, 208, 131, 0.1);
    color: var(--color-primary);
    border: 1px solid rgba(229, 208, 131, 0.2);
}

.badge-perm {
    background: rgba(255, 255, 255, 0.05);
    color: var(--color-muted);
    border: 1px solid var(--rim-inset);
}

.expand-chevron {
    color: var(--color-dim);
    transition: transform 0.3s ease;
}

.cmd-card.expanded .expand-chevron {
    transform: rotate(180deg);
    color: var(--color-primary);
}

/* Expanded Details Pane */
.cmd-details {
    display: none;
    padding: 0 20px 20px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    background: rgba(0, 0, 0, 0.15);
    font-size: 13px;
}

.cmd-card.expanded .cmd-details {
    display: block;
}

.details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 16px;
}

@media (max-width: 700px) {
    .details-grid {
        grid-template-columns: 1fr;
    }
}

.detail-block-title {
    font-family: var(--font-mono);
    font-size: 10px;
    text-transform: uppercase;
    color: var(--color-muted);
    letter-spacing: 0.08em;
    margin-bottom: 6px;
}

.code-box {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--color-lumen);
    background: var(--surface-inset);
    border: 1px solid var(--rim-inset);
    padding: 8px 12px;
    border-radius: 6px;
    word-break: break-all;
}

.param-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.param-item {
    font-size: 12.5px;
    color: var(--color-muted);
}

.param-item code {
    font-family: var(--font-mono);
    color: var(--color-primary);
    margin-right: 6px;
}

/* --- Empty Search State --- */
.empty-state {
    text-align: center;
    padding: 64px 20px;
    background: var(--surface-card);
    border: 1px dashed var(--rim-inset);
    border-radius: 16px;
    display: none;
}

.empty-title {
    font-size: 18px;
    color: var(--color-lumen);
    margin-bottom: 6px;
}

.empty-desc {
    font-size: 13.5px;
    color: var(--color-muted);
    margin-bottom: 20px;
}

.btn-clear {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--color-primary);
    background: var(--color-primary-dim);
    border: 1px solid rgba(229, 208, 131, 0.25);
    padding: 8px 18px;
    border-radius: 99px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-clear:hover {
    background: rgba(229, 208, 131, 0.2);
}

/* --- Bottom CTA --- */
.bottom-cta {
    margin-top: 80px;
    background: radial-gradient(ellipse 100% 80% at 50% -20%, rgba(229, 208, 131, 0.08), var(--surface-card));
    border: 1px solid var(--rim-inset);
    border-radius: 20px;
    padding: 48px 32px;
    text-align: center;
}

.cta-title {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 400;
    margin-bottom: 8px;
}

.cta-desc {
    font-size: 14px;
    color: var(--color-muted);
    margin-bottom: 24px;
}

.cta-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    border-radius: 99px;
    background: transparent;
    color: var(--color-lumen);
    font-size: 12.5px;
    text-decoration: none;
    border: 1px solid var(--rim-inset);
    transition: all 0.2s ease;
}

.btn-ghost:hover {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.03);
}

.lang-switch-floating {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 99;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 99px;
    background: rgba(17, 17, 21, 0.85);
    backdrop-filter: blur(16px);
    border: 1px solid var(--rim-inset);
    color: var(--color-muted);
    font-family: var(--font-mono);
    font-size: 11.5px;
    font-weight: 500;
    cursor: pointer;
    text-transform: uppercase;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.lang-switch-floating:hover {
    background: rgba(26, 26, 34, 0.95);
    color: var(--color-primary);
    border-color: rgba(229, 208, 131, 0.35);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.8), 0 0 20px rgba(229, 208, 131, 0.15);
    transform: translateY(-2px);
}

.lang-switch-floating svg {
    transition: transform 0.3s ease;
}

.lang-switch-floating:hover svg {
    transform: rotate(20deg);
}

@media (max-width: 600px) {
    .lang-switch-floating {
        bottom: 16px;
        left: 16px;
        padding: 6px 12px;
        font-size: 10.5px;
    }
}

/* --- Footer --- */
footer {
    background: #0b0b0e;
    border-top: 1px solid var(--rim-inset);
    padding: 56px 0 36px 0;
    position: relative;
    z-index: 10;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 48px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.footer-brand-side {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 360px;
}

.footer-logo-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-desc {
    font-size: 13px;
    color: var(--color-muted);
    line-height: 1.6;
}

.footer-host-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    padding: 5px 12px;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--rim-inset);
    color: var(--color-muted);
    font-family: var(--font-mono);
    font-size: 11px;
    text-decoration: none;
    width: fit-content;
    transition: all 0.25s ease;
}

.footer-host-badge:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--color-lumen);
    transform: translateY(-1px);
}

.host-icon {
    width: 16px;
    height: 16px;
    object-fit: contain;
}

.footer-nav-simple {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}

.footer-nav-col {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-nav-title {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--color-primary);
    letter-spacing: 0.05em;
}

.footer-nav-col a {
    color: var(--color-muted);
    font-size: 13px;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-nav-col a:hover {
    color: var(--color-lumen);
}

.footer-divider {
    width: 100%;
    height: 1px;
    background: var(--rim-inset);
    margin-bottom: 24px;
}

.footer-bottom-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.copyright-text {
    font-size: 12px;
    color: var(--color-muted);
}

.footer-social-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.social-icon-btn,
.scroll-top-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--rim-inset);
    color: var(--color-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.25s ease;
}

.social-icon-btn:hover,
.scroll-top-btn:hover {
    background: var(--color-primary);
    color: #0A0A0C;
    border-color: var(--color-primary);
}