:root {
    --cs-bg: #0d0d0d;
    --cs-card: #121212;
    --cs-border: rgba(255, 255, 255, 0.06);
    --cs-accent: rgba(34, 90, 122, 0.75);
}

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

html, body {
    margin: 0;
    width: 100%;
    height: 100%;
    height: 100dvh;
    overflow: hidden;
    position: fixed;
    background-color: var(--cs-bg);
    color: #ffffff;
    font-family: 'Poppins', sans-serif;
}

.pattern-layer {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
    opacity: 0.78;
}

.pattern-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    justify-content: center;
    min-height: 100dvh;
}

.pattern-row {
    width: 100%;
    overflow: hidden;
    display: flex;
    flex-shrink: 0;
    contain: layout paint;
}

.marquee-track {
    display: flex;
    width: max-content;
    will-change: transform;
    backface-visibility: hidden;
}

.to-right { animation: scroll-right 165s linear infinite; }
.to-left { animation: scroll-left 165s linear infinite; }

@keyframes scroll-left {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-50%, 0, 0); }
}

@keyframes scroll-right {
    0% { transform: translate3d(-50%, 0, 0); }
    100% { transform: translate3d(0, 0, 0); }
}

.pattern-text {
    font-family: 'NATS', sans-serif;
    font-weight: 500;
    color: #121212;
    letter-spacing: 0.25em;
    margin-right: 0.25em;
    font-size: 2.2rem;
    line-height: 1;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Floating chrome — matches home / docs */
.brand-badge {
    position: fixed;
    top: max(14px, env(safe-area-inset-top));
    left: max(14px, env(safe-area-inset-left));
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background-color: #121212;
    padding: 8px 18px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.02);
    z-index: 100;
    pointer-events: auto;
    cursor: pointer;
    height: 38px;
    box-sizing: border-box;
    text-decoration: none;
    color: inherit;
}

.badge-icon {
    width: 26px;
    height: auto;
    object-fit: contain;
    margin-right: -2px;
}

.badge-text {
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 0.85rem;
    color: #ffffff;
    letter-spacing: 0.02em;
    line-height: 1;
}

.action-header {
    position: fixed;
    top: max(14px, env(safe-area-inset-top));
    right: max(14px, env(safe-area-inset-right));
    display: flex;
    gap: 10px;
    z-index: 100;
    pointer-events: auto;
}

.action-header-more {
    position: relative;
    display: none;
}

.action-button--more[aria-expanded="true"] {
    background-color: #1a1a1a;
    border-color: rgba(255, 255, 255, 0.12);
}

.action-more-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 200px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 8px;
    background-color: #121212;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
    z-index: 110;
}

.action-more-menu[hidden] {
    display: none;
}

.action-more-item {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 6px;
    color: #ffffff;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 0.82rem;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.action-more-item:hover {
    background-color: #1a1a1a;
}

.action-more-item svg {
    width: 1em;
    height: 1em;
    flex-shrink: 0;
}

button.action-button {
    font: inherit;
    appearance: none;
    -webkit-appearance: none;
}

.action-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: #121212;
    color: #ffffff;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 0.82rem;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.8s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    box-sizing: border-box;
    border: 1px solid rgba(255, 255, 255, 0.02);
    cursor: pointer;
    user-select: none;
}

.action-button * {
    pointer-events: none;
}

.action-button:hover {
    transform: scale(1.05);
    background-color: #161616;
    border-color: rgba(255, 255, 255, 0.08);
}

.action-button:active {
    transform: scale(0.98);
}

.action-button svg {
    font-size: 1rem;
    width: 1em;
    height: 1em;
    flex-shrink: 0;
}

.action-button--current {
    background-color: rgba(34, 90, 122, 0.5);
    border-color: rgba(34, 90, 122, 0.75);
    cursor: default;
    pointer-events: none;
    transform: none;
}

.coming-soon-stage {
    position: fixed;
    inset: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: max(72px, calc(54px + env(safe-area-inset-top))) 24px 24px;
    pointer-events: none;
}

.coming-soon-card {
    pointer-events: auto;
    display: flex;
    align-items: center;
    gap: clamp(20px, 4vw, 36px);
    max-width: min(720px, calc(100vw - 48px));
    padding: clamp(28px, 5vw, 44px) clamp(32px, 6vw, 56px);
    background: var(--cs-card);
    border: 1px solid var(--cs-border);
    border-radius: 16px;
    box-shadow:
        0 24px 64px rgba(0, 0, 0, 0.45),
        0 0 0 1px rgba(255, 255, 255, 0.02) inset;
}

.coming-soon-logo-wrap {
    flex-shrink: 0;
    width: clamp(72px, 14vw, 108px);
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.coming-soon-logo {
    width: 100%;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 8px 24px rgba(34, 90, 122, 0.25));
}

.coming-soon-label {
    margin: 0;
    font-size: clamp(1.5rem, 5vw, 2.75rem);
    font-weight: 500;
    letter-spacing: 0.18em;
    line-height: 1.1;
    color: rgba(255, 255, 255, 0.92);
    white-space: nowrap;
}

.coming-soon-label em {
    font-style: normal;
    font-weight: 300;
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.55);
}

@media (max-width: 640px) {
    .brand-badge .badge-text {
        display: none;
    }

    .brand-badge {
        padding: 8px;
        width: 38px;
        justify-content: center;
        border-radius: 50%;
    }

    .coming-soon-card {
        flex-direction: column;
        text-align: center;
        gap: 18px;
        padding: 32px 24px;
    }

    .coming-soon-label {
        white-space: normal;
    }
}

@media (max-width: 520px) {
    .action-button--desktop-only {
        display: none !important;
    }

    .action-header-more {
        display: block;
    }
}

@media (max-width: 480px) {
    .action-header {
        gap: 6px;
    }

    .action-button span {
        display: none;
    }

    .action-button {
        padding: 8px;
        width: 36px;
        height: 36px;
        justify-content: center;
        border-radius: 50%;
    }
}
