.cosa-page {
    background: #000;
}

.cosa-banner {
    position: relative;
    width: calc(100% - 80px);
    height: clamp(360px, 34vw, 400px);
    margin: 0 40px;
}

.cosa-gallery {
    position: absolute;
    inset: 0 0 70px;
    overflow: hidden;
    background: #080808;
    touch-action: pan-y pinch-zoom;
    user-select: none;
}

.cosa-gallery-slide,
.cosa-gallery-shade {
    position: absolute;
    inset: 0;
}

.cosa-gallery-slide {
    margin: 0;
    opacity: 0;
    transition: opacity .55s ease;
}

.cosa-gallery-slide.is-active {
    opacity: 1;
}

.cosa-gallery-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    filter: brightness(.82);
    cursor: zoom-in;
    transform: scale(1.01);
    transition: transform 5s ease;
}

.cosa-gallery-slide.is-active img {
    transform: scale(1.07);
}

.cosa-gallery::after {
    position: absolute;
    z-index: 1;
    right: 0;
    bottom: 0;
    left: 0;
    height: 48%;
    background: linear-gradient(0deg, #000 0%, rgba(0, 0, 0, .55) 34%, transparent 100%);
    content: "";
    pointer-events: none;
}

.cosa-gallery-controls {
    position: absolute;
    z-index: 2;
    inset: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0;
    pointer-events: none;
}

.cosa-gallery-controls::before,
.cosa-gallery-controls::after {
    position: absolute;
    top: 0;
    bottom: 0;
    width: min(19%, 180px);
    content: "";
    opacity: .82;
    pointer-events: none;
    transition: opacity .25s ease;
}

.cosa-gallery-controls::before {
    left: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, .72), transparent);
}

.cosa-gallery-controls::after {
    right: 0;
    background: linear-gradient(270deg, rgba(0, 0, 0, .72), transparent);
}

.cosa-banner:hover .cosa-gallery-controls::before,
.cosa-banner:hover .cosa-gallery-controls::after,
.cosa-banner:focus-within .cosa-gallery-controls::before,
.cosa-banner:focus-within .cosa-gallery-controls::after {
    opacity: 1;
}

.cosa-gallery-arrow {
    position: relative;
    z-index: 1;
    display: grid;
    width: 64px;
    height: 100%;
    place-items: center;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #fff;
    font-size: 2rem;
    opacity: 0;
    pointer-events: auto;
    cursor: pointer;
    transition: opacity .2s ease, transform .2s ease;
}

.cosa-banner:hover .cosa-gallery-arrow,
.cosa-banner:focus-within .cosa-gallery-arrow {
    opacity: 1;
}

.cosa-gallery-arrow:hover,
.cosa-gallery-arrow:focus-visible {
    transform: scale(1.12);
}

.cosa-gallery-dots {
    position: absolute;
    z-index: 3;
    top: auto;
    right: 20px;
    bottom: 16px;
    left: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
}

.cosa-gallery-dot {
    width: 7px;
    height: 7px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, .48);
    box-shadow: 0 1px 8px rgba(0, 0, 0, .4);
    cursor: pointer;
    transition: width .25s ease, background-color .25s ease;
}

.cosa-gallery-dot.is-active {
    width: 21px;
    background: #fff;
}

.cosa-banner-lockup {
    position: absolute;
    z-index: 4;
    right: 0;
    bottom: 0;
    left: clamp(20px, 5vw, 64px);
    display: flex;
    align-items: center;
    gap: 20px;
}

.cosa-banner-logo {
    width: clamp(104px, 11vw, 132px);
    flex: 0 0 auto;
    border: 1px solid rgba(255, 255, 255, .5);
    box-shadow: 0 8px 35px rgba(0, 0, 0, .5);
}

.cosa-banner-copy {
    min-width: 0;
}

.cosa-banner-copy .mono-label {
    margin-bottom: 7px;
    color: #888;
    font-size: .62rem;
}

.cosa-banner-copy h1 {
    margin-bottom: 5px;
    color: #fff;
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    letter-spacing: -.05em;
}

.cosa-banner-copy p {
    color: #999;
    font-size: clamp(.72rem, 1.3vw, .84rem);
    font-weight: 300;
}

.cosa-banner-countdown {
    display: flex;
    gap: clamp(8px, 1.3vw, 16px);
    padding: 10px 0 0;
}

.cosa-banner-countdown .countdown-unit {
    gap: 1px;
}

.cosa-banner-countdown .countdown-unit span:first-child {
    color: #fff;
    font-size: clamp(.78rem, 1.25vw, .98rem);
}

.cosa-banner-countdown .countdown-unit span:last-child {
    color: #999;
    font-size: .48rem;
}

.cosa-banner-countdown .countdown-complete {
    color: #fff;
    font-size: .72rem;
}

.cosa-store {
    max-width: 1120px;
    padding-top: 0;
    padding-bottom: 90px;
}

.cosa-breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 24px 0 18px;
    color: #666;
    font-family: var(--font-mono);
    font-size: .68rem;
    letter-spacing: .7px;
    text-transform: uppercase;
}

.cosa-breadcrumb a {
    color: #aaa;
}

.cosa-overview {
    display: block;
    padding: 24px 0 30px;
    border-bottom: 1px solid #222;
}

.cosa-summary .mono-label,
.cosa-info-section .mono-label {
    color: #666;
}

.cosa-summary .mono-label {
    margin-bottom: 10px;
}

.cosa-tagline {
    margin: 0 0 12px;
    color: #fff;
    font-size: clamp(1.35rem, 3vw, 2rem);
    font-weight: 400;
}

.cosa-summary-copy {
    max-width: 760px;
    color: #999;
    font-size: .93rem;
    font-weight: 300;
    line-height: 1.75;
}

.cosa-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin: 18px 0;
}

.cosa-tags span {
    color: #aaa;
    font-size: .8rem;
}

.cosa-tags span + span::before {
    content: "/";
    margin-right: 14px;
    color: #555;
}

.cosa-release-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 10px 24px;
    padding-top: 12px;
    border-top: 1px solid #222;
    color: #888;
    font-family: var(--font-mono);
    font-size: .62rem;
    letter-spacing: .6px;
}

.cosa-release-row time,
.cosa-status {
    color: #ddd;
}

.cosa-status,
.cosa-release-date {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    white-space: nowrap;
}

.cosa-release-date {
    gap: 7px;
}

.cosa-status .status-dot {
    display: inline-block;
    flex: 0 0 auto;
    width: 7px;
    height: 7px;
    margin-right: 7px;
    border-radius: 50%;
    background: #aaa;
}

.cosa-summary .countdown {
    max-width: 410px;
    padding: 18px 0 7px;
}

.cosa-summary .countdown-unit span:first-child {
    font-size: 1.55rem;
}

.cosa-summary .countdown-unit span:last-child {
    font-size: .54rem;
}

.cosa-summary .release-note {
    color: #666;
    font-size: .68rem;
}

.cosa-content {
    max-width: 820px;
}

.cosa-info-section {
    padding: 30px 0;
    border-bottom: 1px solid #222;
    scroll-margin-top: 90px;
}

.cosa-info-section:first-child {
    padding-top: 32px;
}

.cosa-info-section h2 {
    margin: 0 0 18px;
    font-size: clamp(1.45rem, 3vw, 2rem);
    font-weight: 400;
}

.cosa-info-section > p {
    max-width: 760px;
    margin-bottom: 14px;
    color: #999;
    font-size: .95rem;
    font-weight: 300;
    line-height: 1.85;
}

.cosa-info-section > p + p {
    margin-top: 12px;
}

.cosa-info-section > p strong {
    color: #eee;
    font-weight: 500;
}

.cosa-feature-list {
    display: grid;
    margin: 22px 0 16px;
    padding: 0;
    list-style: none;
}

.cosa-feature-list li {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 10px;
    padding: 17px 0;
    border-top: 1px solid #222;
}

.cosa-feature-list li > span {
    padding-top: 2px;
    color: #777;
    font-family: var(--font-mono);
    font-size: .7rem;
}

.cosa-tech-list li {
    grid-template-columns: 38px minmax(0, 1fr);
    align-items: center;
}

.technology-icon,
.technology-icon-fallback {
    grid-column: 1;
    grid-row: 1;
    justify-self: center;
}

.technology-icon {
    width: 26px;
    height: 26px;
    object-fit: contain;
}

.technology-icon-fallback {
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    border: 1px solid #333;
    color: #aaa;
    font-family: var(--font-mono);
    font-size: .62rem;
    padding: 0;
}

.cosa-tech-list li > div {
    grid-column: 2;
}

.cosa-feature-list h3,
.cosa-tech-grid h3 {
    margin: 0 0 5px;
    font-size: .98rem;
    font-weight: 400;
}

.cosa-feature-list p,
.cosa-tech-grid p {
    margin: 0;
    color: #929292;
    font-size: .83rem;
    font-weight: 300;
    line-height: 1.7;
}

.cosa-image-strip {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 20px;
}

.cosa-image-strip img {
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 1px solid #222;
    object-fit: cover;
    cursor: zoom-in;
}

.cosa-contact {
    max-width: 1120px;
    padding-top: 0;
    padding-bottom: 72px;
}

.cosa-contact-inner {
    padding: 30px 0 0;
    border-top: 1px solid #292929;
}

.cosa-contact-inner > .mono-label {
    color: #666;
}

.cosa-contact-inner h2 {
    margin: 8px 0 10px;
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 400;
}

.cosa-contact-inner > p {
    max-width: 620px;
    margin-bottom: 22px;
    color: #999;
    font-size: .9rem;
    font-weight: 300;
    line-height: 1.75;
}

.cosa-contact-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.cosa-contact-links a {
    display: flex;
    min-width: 0;
    min-height: 54px;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid #252525;
    color: #ddd;
    font-size: .82rem;
    transition: border-color .2s ease, background-color .2s ease;
}

.cosa-contact-links a:hover,
.cosa-contact-links a:focus-visible {
    border-color: #666;
    background: #0b0b0b;
}

.cosa-contact-links a > ion-icon:first-child {
    flex: 0 0 auto;
    color: #aaa;
    font-size: 1.15rem;
}

.cosa-contact-links .contact-address {
    margin-left: auto;
    color: #777;
    font-family: var(--font-mono);
    font-size: .66rem;
}

.cosa-contact-email {
    display: grid !important;
    grid-template-columns: 20px minmax(0, 1fr);
    align-content: center;
    column-gap: 12px !important;
}

.cosa-contact-email > ion-icon:first-child {
    grid-column: 1;
    grid-row: 1 / span 2;
}

.cosa-contact-email > span:not(.contact-address) {
    grid-column: 2;
}

.cosa-contact-links .cosa-contact-email .contact-address {
    grid-column: 2;
    margin: 3px 0 0;
    overflow-wrap: anywhere;
}

.cosa-contact-links .contact-external {
    margin-left: auto;
    color: #666;
    font-size: .9rem;
}

.footer-language {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.footer-language-label {
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: .68rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.language-picker {
    position: relative;
    min-width: 176px;
}

.language-trigger {
    display: flex;
    width: 100%;
    min-height: 44px;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border: 1px solid #333;
    background: #080808;
    color: var(--text-secondary);
    font: inherit;
    font-size: .82rem;
    text-align: left;
    cursor: pointer;
    transition: border-color .2s ease, background-color .2s ease;
}

.language-trigger:hover,
.language-trigger[aria-expanded="true"] {
    border-color: #777;
    background: #111;
}

.language-trigger ion-icon {
    margin-left: auto;
    color: #888;
    transition: transform .2s ease;
}

.language-trigger[aria-expanded="true"] ion-icon {
    transform: rotate(180deg);
}

.language-flag-wrap {
    position: relative;
    display: inline-grid;
    width: 25px;
    height: 18px;
    flex: 0 0 auto;
    place-items: center;
    overflow: hidden;
    border: 1px solid #333;
    background: #151515;
}

.language-flag {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.language-flag-fallback {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: #aaa;
    font-family: var(--font-mono);
    font-size: .53rem;
    line-height: 1;
}

.language-flag-fallback[hidden] {
    display: none;
}

.language-options {
    position: absolute;
    z-index: 10;
    right: 0;
    bottom: calc(100% + 8px);
    left: 0;
    display: grid;
    padding: 5px;
    border: 1px solid #333;
    background: #0b0b0b;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .55);
}

.language-options[hidden] {
    display: none;
}

.language-option {
    display: flex;
    min-height: 42px;
    align-items: center;
    gap: 10px;
    padding: 8px;
    border: 0;
    background: transparent;
    color: #aaa;
    font: inherit;
    font-size: .82rem;
    text-align: left;
    cursor: pointer;
}

.language-option:hover,
.language-option:focus-visible,
.language-option[aria-selected="true"] {
    background: #1a1a1a;
    color: #fff;
}

.language-trigger:focus-visible,
.language-option:focus-visible {
    outline: 1px solid #aaa;
    outline-offset: 3px;
}

.image-lightbox {
    position: fixed;
    inset: 0;
    display: none;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    max-width: none;
    max-height: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
    border: 0;
    background: transparent;
    color: #fff;
}

.image-lightbox::backdrop {
    background: rgba(0, 0, 0, .76);
    backdrop-filter: blur(14px) brightness(.58);
    -webkit-backdrop-filter: blur(14px) brightness(.58);
    animation: lightbox-backdrop-in .38s ease both;
}

.image-lightbox[open] {
    display: grid;
    place-items: center;
    animation: lightbox-surface-in .42s cubic-bezier(.2, .75, .25, 1) both;
}

.lightbox-image {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    min-width: 0;
    min-height: 0;
    padding: clamp(10px, 2.5vw, 34px);
    box-sizing: border-box;
    object-fit: contain;
    object-position: center;
    filter: drop-shadow(0 20px 55px rgba(0, 0, 0, .55));
    cursor: zoom-out;
    animation: lightbox-image-zoom .48s cubic-bezier(.2, .75, .25, 1) both;
}

.lightbox-close {
    position: absolute;
    z-index: 1;
    top: max(18px, env(safe-area-inset-top));
    right: max(30px, calc(env(safe-area-inset-right) + 12px));
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #fff;
    font-size: 1.8rem;
    cursor: pointer;
    transition: opacity .2s ease, transform .2s ease;
}

.lightbox-close:hover,
.lightbox-close:focus-visible {
    transform: scale(1.08);
    opacity: .72;
}

.lightbox-close:focus-visible {
    outline: 1px solid #aaa;
    outline-offset: 1px;
}

.image-lightbox.is-closing {
    animation: lightbox-surface-out .32s cubic-bezier(.55, 0, .8, .35) both;
}

.image-lightbox.is-closing::backdrop {
    animation: lightbox-backdrop-out .32s ease both;
}

.image-lightbox.is-closing .lightbox-image {
    animation: lightbox-image-zoom-out .32s cubic-bezier(.55, 0, .8, .35) both;
}

@keyframes lightbox-surface-in {
    from { opacity: 0; transform: scale(.9); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes lightbox-surface-out {
    from { opacity: 1; transform: scale(1); }
    to { opacity: 0; transform: scale(.92); }
}

@keyframes lightbox-image-zoom {
    from { transform: scale(.94); }
    to { transform: scale(1); }
}

@keyframes lightbox-image-zoom-out {
    from { transform: scale(1); }
    to { transform: scale(.92); }
}

@keyframes lightbox-backdrop-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes lightbox-backdrop-out {
    from { opacity: 1; }
    to { opacity: 0; }
}

@media (max-width: 600px) {
    .lightbox-image {
        padding: 0;
    }

    .lightbox-close {
        width: 42px;
        height: 42px;
        right: max(26px, calc(env(safe-area-inset-right) + 10px));
    }
}

@media (prefers-reduced-motion: reduce) {
    .image-lightbox[open],
    .image-lightbox[open] .lightbox-image,
    .image-lightbox.is-closing,
    .image-lightbox.is-closing .lightbox-image,
    .image-lightbox::backdrop {
        animation-duration: .01ms;
    }
}

.cosa-info-section .cosa-disclaimer {
    color: #666;
    font-size: .76rem;
}

.cosa-tech-grid {
    display: block;
    margin: 21px 0 15px;
    border-top: 1px solid #222;
}

.cosa-tech-grid article {
    display: grid;
    grid-template-columns: 55px minmax(0, 1fr);
    gap: 13px;
    align-items: start;
    min-width: 0;
    padding: 15px 0;
    border-bottom: 1px solid #222;
}

.tech-mark {
    display: grid;
    min-height: 32px;
    place-items: center;
    border: 1px solid #333;
    color: #bbb;
    font-family: var(--font-mono);
    font-size: .67rem;
}

.cosa-back-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    max-width: 340px;
    margin-top: 28px;
    padding: 12px 0;
    border-top: 1px solid #333;
    border-bottom: 1px solid #333;
    color: #ddd;
    font-size: .82rem;
}

.cosa-back-link ion-icon {
    flex: 0 0 auto;
}

@media (max-width: 768px) {
    .cosa-page .header-right-actions {
        gap: 0;
        padding: 0;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
    }

    .cosa-page .header-right-actions > .header-btn {
        display: grid;
        width: 42px;
        height: 42px;
        place-items: center;
        padding: 0;
        border: 0;
        border-radius: 0;
        background: transparent;
        color: var(--text-primary);
        font-size: 1.35rem;
    }

    .cosa-page .header-right-actions > .header-btn:hover,
    .cosa-page .header-right-actions > .header-btn:focus-visible {
        background: transparent;
        opacity: .68;
    }

    .cosa-page .menu-header {
        padding: 12px 5%;
    }

    .cosa-page .menu-header-actions {
        display: flex;
    }

    .cosa-page .menu-footer {
        padding-bottom: max(30px, env(safe-area-inset-bottom));
    }

    .cosa-banner {
        width: 100%;
        height: 370px;
        margin: 0;
    }

    .cosa-gallery {
        bottom: 66px;
    }

    .cosa-gallery-dots {
        top: auto;
        right: 14px;
        bottom: 12px;
    }

    .cosa-gallery-controls {
        padding: 0;
    }

    .cosa-gallery-arrow {
        width: 48px;
        font-size: 1.7rem;
        opacity: 1;
    }

    .cosa-banner-lockup {
        left: 5%;
        gap: 14px;
        align-items: center;
    }

    .cosa-banner-logo {
        width: clamp(90px, 21vw, 116px);
    }

    .cosa-banner-copy h1 {
        font-size: clamp(1.25rem, 5vw, 1.8rem);
    }

    .cosa-banner-copy p {
        max-width: 330px;
        font-size: .75rem;
    }

    .cosa-banner-countdown {
        gap: 10px;
        padding-top: 8px;
    }

    .cosa-banner-copy .mono-label {
        font-size: .55rem;
        letter-spacing: 1px;
    }

    .cosa-store {
        padding-bottom: 60px;
    }

    .cosa-summary .countdown {
        max-width: 100%;
    }

    .cosa-content {
        max-width: none;
    }

    .cosa-image-strip {
        gap: 8px;
    }

    .cosa-contact {
        padding-bottom: 54px;
    }

    .cosa-contact-links {
        grid-template-columns: 1fr;
    }

    .cosa-contact-links a {
        min-height: 52px;
    }

    .footer-language {
        width: 100%;
    }
}

@media (max-width: 420px) {
    .cosa-banner {
        height: 360px;
    }

    .cosa-gallery {
        bottom: 58px;
    }

    .cosa-banner-lockup {
        gap: 10px;
    }

    .cosa-banner-logo {
        width: 78px;
    }

    .cosa-banner-copy h1 {
        font-size: clamp(1.08rem, 5.8vw, 1.4rem);
    }

    .cosa-banner-copy p {
        max-width: 215px;
        font-size: .68rem;
        line-height: 1.35;
    }

    .cosa-banner-copy .mono-label {
        margin-bottom: 4px;
        font-size: .48rem;
        letter-spacing: .7px;
    }

    .cosa-banner-countdown {
        gap: 8px;
        padding-top: 6px;
    }

    .cosa-banner-countdown .countdown-unit span:first-child {
        font-size: .72rem;
    }

    .cosa-banner-countdown .countdown-unit span:last-child {
        font-size: .42rem;
    }

    .cosa-gallery-dots {
        top: auto;
        right: 12px;
        bottom: 10px;
    }

    .cosa-tags {
        gap: 8px;
    }

    .cosa-tags span + span::before {
        margin-right: 8px;
    }

    .cosa-release-row {
        gap: 8px 10px;
        font-size: .54rem;
        letter-spacing: .25px;
    }

    .cosa-release-date {
        gap: 4px;
    }

    .cosa-feature-list li {
        grid-template-columns: 32px minmax(0, 1fr);
    }

    .cosa-image-strip {
        grid-template-columns: 1fr;
    }

    .cosa-contact-links .contact-address {
        font-size: .58rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cosa-gallery-slide,
    .cosa-gallery-slide img,
    .cosa-gallery-arrow,
    .cosa-gallery-dot,
    .cosa-gallery-controls::before,
    .cosa-gallery-controls::after {
        transition-duration: .01ms;
    }
}
