/* Critical CSS: above-the-fold + scroll video. Full stylesheet loads async. */
:root {
    --global--size: clamp(2rem, 4vw, 5rem);
    --anim--hover-time: 350ms;
    --anim--hover-ease: cubic-bezier(0.34, 1.56, 0.64, 1);
    --spring-ease: cubic-bezier(0.34, 1.56, 0.64, 1);
    --spring-card: cubic-bezier(.31,.84,.45,1.47);
    --spring-slider: cubic-bezier(.31,.84,.45,1.05);
    --global--color: rgb(192, 86, 56);
    --global--red: 192;
    --global--green: 86;
    --global--blue: 56;
}
* { margin: 0; padding: 0; box-sizing: border-box; font-family: "Tommy Soft", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
a, button { -webkit-tap-highlight-color: transparent; }
body {
    background-color: #080a10;
    color: white;
    height: auto;
    /* min-height: 300vh; */
    overflow-x: hidden;
    overflow-y: visible;
    padding-bottom: 0;
    position: relative;
}
@media (max-width: 768px) {
    body::after {
        content: '';
        position: fixed;
        top: env(safe-area-inset-top, 0);
        left: 0;
        right: 0;
        bottom: env(safe-area-inset-bottom, 0);
        background-color: var(--tint-color, rgba(0,0,0,0));
        mix-blend-mode: multiply;
        pointer-events: none;
        z-index: 9999;
        transition: background-color 0s;
        transform: scale(2);
    }
    body.preset-transitioning::after { transition: background-color 0.3s ease-out; }
    body.contact-popup-active::after { transition: background-color 0.3s ease-out !important; }
}
@media (min-width: 769px) {
    body::after {
        content: '';
        position: fixed;
        inset: 0;
        background-color: var(--tint-color, rgba(0,0,0,0));
        mix-blend-mode: multiply;
        pointer-events: none;
        z-index: 9999;
        transition: background-color 0.3s ease-out;
        opacity: 1;
    }
    body.contact-popup-active::after { opacity: 1; }
}
#global-tint {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
    background-color: rgba(0,0,0,0);
    transition: none;
    mix-blend-mode: multiply;
}
body.preset-transitioning #global-tint { transition: background-color 0.3s ease-out; }
@media (max-width: 768px) {
    #global-tint { display: none !important; }
}
.sky-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100vh;
    height: 100lvh;
    min-height: -webkit-fill-available;
    background-color: #080a10;
    overflow: visible;
    z-index: 0;
}
canvas#star-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    z-index: 1;
}
.cloud-parallax-wrapper {
    position: fixed;
    inset: 0;
    pointer-events: none;
    height: 100vh;
    height: 100lvh;
}
.cloud-wrapper-back { z-index: 5; }
.cloud-wrapper-mid { z-index: 20; }
.cloud-wrapper-front { z-index: 110; }
.cloud-img {
    position: absolute;
    width: 550px;
    height: auto;
    will-change: transform, opacity;
    transform-origin: center center;
    opacity: 0;
    transition: opacity 0.5s ease;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    --parallax-speed: 1.3;
    --x-position: 0;
    --scroll-y: 0;
    --flip: 1;
    --base-scale: 1;
    transform: translate3d(calc(var(--x-position) * 1vw), calc(var(--scroll-y) * var(--parallax-speed) * -1px), 0) scale(var(--base-scale)) scaleX(var(--flip));
}
.cloud-wrapper-back .cloud-img { --parallax-speed: 1.3; }
.cloud-wrapper-mid .cloud-img { --parallax-speed: 1.8; }
.cloud-wrapper-front .cloud-img { --parallax-speed: 2.8; }
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    z-index: 15;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-bottom: 30vh;
    pointer-events: none;
    will-change: height, padding-bottom;
}
.header-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    background-color: rgb(8, 10, 16);
    -webkit-mask-image: linear-gradient(to bottom, black 0%, rgba(0,0,0,0.8) 25%, rgba(0,0,0,0.4) 60%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 0%, rgba(0,0,0,0.8) 25%, rgba(0,0,0,0.4) 60%, transparent 100%);
    opacity: 0;
    will-change: opacity;
    display: block;
}
.header-content {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 2rem;
}
.header-content {
    position: relative;
    height: 100%;
}
.header-blur-bg { display: none; }
header.safari-mobile .header-bg { display: none !important; }
header.safari-mobile .header-blur-bg { display: block; }
@supports (-webkit-touch-callout: none) {
    @media (max-width: 768px) {
        header { top: 0; }
        .header-blur-bg {
            width: 118%;
            height: 118%;
            position: absolute;
            border-radius: 25px;
            backdrop-filter: blur(2px);
            mask-image: radial-gradient(rgba(0, 0, 0, 1) 30%, rgba(255, 255, 255, 0) 60%);
            opacity: 0;
            will-change: opacity;
            transition: opacity 0.3s ease;
        }
    }
}
.brand-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 2;
    width: auto;
    pointer-events: auto;
}
.logo-lockup {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    will-change: transform;
    transform-origin: center center;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}
.brand-logo-img {
    width: 120px;
    height: auto;
    margin-right: 30px;
    filter: brightness(1.1) drop-shadow(0 0 10px #ffffff) drop-shadow(0 0 30px #D97D54) drop-shadow(0 0 50px #C05638);
    will-change: filter;
    transition: filter 0.4s var(--spring-ease);
}
header.is-sticky .brand-logo-img { filter: brightness(1.0) drop-shadow(0 10px 20px rgba(0,0,0,0.5)) !important; }
.logo {
    margin: 0;
    font-weight: 700;
    letter-spacing: -2px;
    background: linear-gradient(to bottom, #fff, #D97D54);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 6.4rem;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.5));
    text-align: left;
    white-space: nowrap;
    padding-right: 2px;
}
.tagline {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 20px;
    color: #E6C9A8;
    text-align: center;
    font-size: 1.28rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
    will-change: opacity;
    white-space: nowrap;
    width: max-content;
    max-width: 95vw;
}
.header-app-badge {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 70px;
    will-change: opacity;
    transition: transform 0.3s var(--spring-card), filter 0.3s var(--spring-card);
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}
.header-app-badge img { height: 52px; width: auto; filter: drop-shadow(0 4px 10px rgba(0,0,0,1.0)); }
@media (hover: hover) {
    .header-app-badge:hover { transform: translateX(-50%) scale(1.05); filter: brightness(1.2); }
}
.header-app-badge:active { transform: translateX(-50%) translateY(2px) scale(0.975); filter: brightness(0.75); }
.button-wrap {
    position: absolute;
    right: 2%;
    z-index: 2;
    border-radius: 999vw;
    background: transparent;
    pointer-events: none;
    transition: all var(--anim--hover-time) var(--anim--hover-ease);
    opacity: 0;
}
.button-wrap:not(.visible) .button-download { pointer-events: none !important; }
.showcase-track {
    position: relative;
    height: 180vh;
    z-index: 2;
    margin-top: 100vh;
    margin-top: 100lvh;
}
.monitor-sticky-container {
    position: sticky;
    top: 0;
    width: 100%;
    height: 100vh;
    height: 100lvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: visible;
    padding-top: 0;
    padding-bottom: 0;
    gap: 2rem;
}
.monitor-content-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    width: 100%;
}
.monitor-bezel {
    width: min(55vw, 60vh);
    aspect-ratio: 2336 / 1510;
    border-radius: 32px;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 30px 100px rgba(192, 86, 56, 0.25);
    position: relative;
    z-index: 10;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.0) 100%);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.monitor-screen {
    width: 100%;
    height: 100%;
    background: #000;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
}
.monitor-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0;
    transition: opacity 0.6s ease;
    z-index: 0;
}
.monitor-dim-layer {
    position: absolute;
    inset: 0;
    background-color: black;
    opacity: 0;
    will-change: opacity;
    z-index: 1;
    transform: scale(1.05);
}
.monitor-text {
    text-align: center;
    max-width: 700px;
    padding: 0 20px;
    z-index: 10;
    margin-top: 1rem;
}
.monitor-text h2,
.monitor-text p {
    opacity: 0;
    transform: translateY(60px);
    will-change: opacity, transform;
}
.monitor-text h2 {
    font-size: 3.25rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(to bottom, #fff, #D97D54);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.monitor-text p {
    color: #E6D5C3;
    font-size: 1.6rem;
    line-height: 1.5;
}
