:root {
    --teal: #043A47;
    --teal-mid: #0a4f60;
    --yellow: #BAFF00;
    --ice: #CED7E4;
    --ice-dark: #b8c5d4;
    --bg-light: #E8EEF4;
    --bg-white: #F2F6FA;
    --white: #FFFFFF;
    --black: #1B1B1B;
    --text: #1B1B1B;
    --text-mid: #3a4a54;
    --muted: #043A47;
    --border: rgba(4, 58, 71, 0.12);
    --border-ice: rgba(4, 58, 71, 0.08);
    --header-height: 70px;
    --mobile-demo-footer-height: 3.8rem;
    --shadow: rgb(13 37 43 / 53%);

    --anim-delay: 0.5s;
    --anim-duration: 0.4s;
    --anim-reveal: 0.3s;

    --fs-100: 0.55rem;
    --fs-200: 0.62rem;
    --fs-300: 0.73rem;
    --fs-400: 0.82rem;
    --fs-500: 0.9rem;
    --fs-600: 1.09rem;
    --fs-700: 1.4rem;
    --fs-800: 2.18rem;
    --fs-900: 4.5rem;
}

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

html {
    scroll-behavior: smooth;
    /*scroll-snap-type: y proximity;*/
    scroll-padding: var(--header-height);
    font-size: 18px;
}

body {
    background: var(--bg-white);
    color: var(--text);
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

::-webkit-scrollbar {
    width: 2px;
}

::-webkit-scrollbar-track {
    background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
    background: var(--teal);
}

/* ══ HEADER ══ */
header {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 200;
    align-items: center;
    justify-content: space-between;
    padding: 0 3rem;
    height: var(--header-height);
    background: rgba(242, 246, 250, 0.92);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: background 0.4s;

    display: grid;
    grid-template-columns: 1fr min-content 1fr;
}

.logo-wrap {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    flex-shrink: 0;
    margin-right: 1.2rem;
}

.logo-img {
    height: 100%;
    display: block;
}

.logo-img--footer {
    width: 125px;
    height: auto;
}

nav {
    display: flex;
    align-items: center;
    gap: 1.9rem;
}

nav:last-child {
    justify-content: flex-end;
}

nav a {
    font-family: 'Montserrat', sans-serif;
    font-size: var(--fs-300);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--teal);
    text-decoration: none;
    transition: color 0.2s;
    font-weight: bold;
}

nav a:hover {
    color: var(--teal-mid);
}

.btn-demo {
    color: var(--white);
    background: var(--teal);
    padding: 0.3rem 1rem;
    text-decoration: none;
    border-radius: 3px;
    transition: background 0.2s, transform 0.2s;
    display: inline-block;
    text-align: center;
}

.btn-demo:hover {
    color: var(--white);
    background: var(--teal-mid);
    /*transform: translateY(-1px);*/
}

.mobile-demo-footer {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1rem 1.5rem max(1rem, env(safe-area-inset-bottom));
    /*background: var(--bg-white);*/
    transition: opacity 0.3s ease;
    /* Fix iOS Chrome: browser chrome collapse moves fixed elements, background covers the gap */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    /*backdrop-filter: blur(8px);*/
    /*border-top: 1px solid var(--border-ice);*/
}

.mobile-demo-footer.hidden {
    opacity: 0;
    pointer-events: none;
}

.mobile-demo-footer .btn-demo {
    display: block;
    width: 70%;
}

/* ══ HERO ══ */
.hero {
    position: relative;
    width: 100vw;
    height: calc(9 / 16 * 100vw);
    background: var(--teal);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    padding: 90px;
    overflow: hidden;
    max-height: calc(100vh - var(--header-height));
    box-sizing: border-box;
}

.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}


.hero-content {
    position: relative;
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2rem;
}

.logo-hero {
    height: 40%;
}

.hero-eyebrow {
    font-family: 'Montserrat', sans-serif;
    font-size: var(--fs-200);
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--white);
    text-shadow: 0 0px 16px rgba(0, 0, 0, 0.7);
    opacity: 0;
    animation: riseUp 0.7s 0.15s ease forwards;
}

.hero-sub {
    font-family: 'Montserrat', sans-serif;
    font-size: var(--fs-600);
    font-weight: 300;
    color: rgba(255, 255, 255, 0.85);
    max-width: 670px;
    line-height: 1.55;
    text-shadow: 0 0px 16px rgba(0, 0, 0, 0.7);
    opacity: 0;
    animation: riseUp 0.9s 0.45s ease forwards;
}

.hero-cta {
    font-size: var(--fs-600);
    opacity: 0;
    animation: riseUp 0.9s 0.5s ease forwards;
}

.btn-primary {
    font-family: 'Montserrat', sans-serif;
    font-size: var(--fs-600);
    font-weight: bold;
    color: var(--teal);
    background: var(--yellow);
    padding: 0.5rem 1.5rem;
    text-decoration: none;
    border-radius: 3px;
    display: inline-block;
    transition: opacity 0.2s, transform 0.2s;
}

.btn-primary:hover {
    background: var(--white);
}

@keyframes riseUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes blinkAnim {
    0%, 100% {
        opacity: 1
    }
    50% {
        opacity: 0.15
    }
}

/* ══ SECTION COMMONS ══ */
.section-label {
    font-family: 'Montserrat', sans-serif;
    font-size: var(--fs-600);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--teal);
    margin-bottom: 1rem;
}

.section-title {
    font-family: 'Montserrat', sans-serif;
    font-size: var(--fs-800);
    font-weight: 300;
    line-height: 1.1;
    letter-spacing: -0.01em;
    color: var(--teal);
    margin-bottom: 4rem;
    max-width: 600px;
}

.section-title strong {
    font-weight: 700;
}

.benefits-intro {
    font-family: 'Montserrat', sans-serif;
    font-size: var(--fs-700);
    font-weight: 300;
    color: var(--teal);
    text-align: center;
    max-width: 80%;
    line-height: 1.45;
    margin: 7rem auto 5rem;
}

.benefits-intro strong {
    font-weight: 700;
}

/* ══ POURQUOI ══ */
.benefits {
    padding: 5rem 3rem;
    background: var(--bg-white);
}

.why-title {
    font-family: 'Montserrat', sans-serif;
    font-size: var(--fs-800);
    font-weight: 300;
    color: var(--teal);
    letter-spacing: -0.01em;
    line-height: 1.1;
    max-width: 700px;
    margin: 2rem 0 4rem;
}

.why-title strong {
    font-weight: 700;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border: 1px solid var(--border);
}

.benefit-card {
    padding: 2.4rem 2rem;
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.benefit-card:last-child {
    border-right: none;
}

.benefit {
    display: flex;
    align-items: center;
}

.benefit-num {
    font-family: 'Montserrat', sans-serif;
    font-size: var(--fs-300);
    font-weight: 700;
    letter-spacing: 0.16em;
    color: var(--teal);
    margin-right: 0.5rem;
}

.benefit-icon {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
}

.benefit-card h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: var(--fs-600);
    font-weight: 700;
    color: var(--teal);
    line-height: 1.35;
    margin: 0;
}

.benefit-card p {
    font-size: var(--fs-500);
    color: var(--text-mid);
    line-height: 1.75;
    margin: 0;
}

.benefit-card.bc-solution {
    background: var(--bg-light);
}

/* ══ FONCTIONNEMENT ══ */
.how {
    padding: 8rem 3rem;
    background: var(--bg-light);
    border-top: 1px solid var(--border-ice);
    border-bottom: 1px solid var(--border-ice);
}

.how-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7rem;
    align-items: start;
}

.how-steps {
    display: flex;
    flex-direction: column;
}

.step {
    display: grid;
    grid-template-columns: 3rem 1fr auto;
    gap: 1.5rem;
    align-items: start;
    padding: 2rem 0;
    border-bottom: 1px solid var(--border-ice);
    cursor: default;
}

.step-num {
    font-family: 'Montserrat', sans-serif;
    font-size: var(--fs-300);
    font-weight: 700;
    color: var(--ice-dark);
    line-height: 1.6;
    transition: color 0.3s;
    user-select: none;
}

.step:hover .step-num {
    color: var(--teal);
}

.step-body h4 {
    font-family: 'Montserrat', sans-serif;
    font-size: var(--fs-500);
    font-weight: 600;
    color: var(--teal);
    margin-bottom: 0.35rem;
    line-height: 1.3;
}

.step-body p {
    font-size: var(--fs-500);
    color: var(--text-mid);
    line-height: 1.65;
}

.step-tag {
    font-family: 'Montserrat', sans-serif;
    font-size: var(--fs-100);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--teal);
    border: 1px solid var(--border);
    padding: 0.18rem 0.45rem;
    opacity: 0;
    transition: opacity 0.3s;
    align-self: flex-start;
    margin-top: 0.2rem;
    white-space: nowrap;
    background: var(--white);
}

.step:hover .step-tag {
    opacity: 1;
}

/* Specs */
.specs-block {
    background: var(--white);
    border: 1px solid var(--border);
    padding: 2rem;
    margin-top: 2.5rem;
}

.specs-title {
    font-family: 'Montserrat', sans-serif;
    font-size: var(--fs-100);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 1.2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-ice);
}

.spec-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-ice);
}

.spec-row:last-child {
    border-bottom: none;
}

.spec-key {
    font-size: var(--fs-400);
    color: var(--text-mid);
}

.spec-val {
    font-family: 'Montserrat', sans-serif;
    font-size: var(--fs-300);
    color: var(--teal);
    letter-spacing: 0.04em;
    font-weight: 500;
}

/* Sticky sensor card */
.how-visual {
    position: sticky;
    top: calc(60px + 3rem);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.capteur-photo {
    width: 100%;
    display: block;
    border: 1px solid var(--border);
}

.vis-label {
    font-family: 'Montserrat', sans-serif;
    font-size: var(--fs-100);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 0.2rem;
}

.sensor-live {
    background: var(--teal);
    padding: 2rem;
    border: 1px solid rgba(4, 58, 71, 0.2);
}

.slh {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.slh-label {
    font-family: 'Montserrat', sans-serif;
    font-size: var(--fs-100);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(206, 215, 228, 0.5);
}

.slh-id {
    font-family: 'Montserrat', sans-serif;
    font-size: var(--fs-300);
    color: var(--ice);
    margin-top: 0.2rem;
    letter-spacing: 0.06em;
}

.slh-status {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.slh-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 8px #4ade80;
    animation: blinkAnim 1.6s infinite;
}

.slh-status-txt {
    font-family: 'Montserrat', sans-serif;
    font-size: var(--fs-100);
    color: #4ade80;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.sensor-value-big {
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
    font-size: var(--fs-900);
    line-height: 1;
    color: var(--white);
    letter-spacing: -0.02em;
    margin-bottom: 0.2rem;
}

.sensor-unit {
    font-size: var(--fs-700);
    color: rgba(206, 215, 228, 0.5);
    margin-left: 0.15rem;
    font-weight: 300;
}

.sensor-bar-wrap {
    height: 2px;
    background: rgba(206, 215, 228, 0.15);
    margin: 1.5rem 0 0.4rem;
    position: relative;
}

.sensor-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, rgba(206, 215, 228, 0.4), var(--ice));
    width: 0%;
    animation: fillUp 1.8s 0.8s ease forwards;
}

@keyframes fillUp {
    to {
        width: 72%;
    }
}

.sensor-bar-max {
    position: absolute;
    top: -4px;
    bottom: -4px;
    width: 1px;
    background: rgba(235, 255, 0, 0.6);
    left: 88%;
}

.sensor-bar-max::after {
    content: 'SEUIL';
    font-family: 'Montserrat', sans-serif;
    font-size: var(--fs-100);
    color: rgba(235, 255, 0, 0.6);
    position: absolute;
    top: -15px;
    left: 4px;
    letter-spacing: 0.1em;
    white-space: nowrap;
}

.sensor-meta {
    display: flex;
    justify-content: space-between;
}

.sm-item {
    font-family: 'Montserrat', sans-serif;
    font-size: var(--fs-100);
    color: rgba(206, 215, 228, 0.45);
}

.sm-item strong {
    color: var(--ice);
}

.sensor-mini-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid rgba(206, 215, 228, 0.1);
    margin-top: 1.5rem;
}

.smg-item {
    padding: 0.9rem 0.7rem;
    border-right: 1px solid rgba(206, 215, 228, 0.1);
    text-align: center;
}

.smg-item:last-child {
    border-right: none;
}

.smg-val {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: var(--fs-600);
    color: var(--white);
    display: block;
}

.smg-lbl {
    font-family: 'Montserrat', sans-serif;
    font-size: var(--fs-100);
    color: rgba(206, 215, 228, 0.45);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: block;
    margin-top: 0.12rem;
}

/* Alert */
.alert-pill {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.85rem 1.1rem;
    background: var(--white);
    border: 1px solid var(--border);
    border-left: 3px solid var(--teal);
}

.alert-icon-wrap {
    flex-shrink: 0;
}

.alert-title-txt {
    font-family: 'Montserrat', sans-serif;
    font-size: var(--fs-100);
    color: var(--teal);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.alert-body-txt {
    font-size: var(--fs-400);
    color: var(--text-mid);
    margin-top: 0.1rem;
    font-weight: 400;
}

.alert-time {
    font-family: 'Montserrat', sans-serif;
    font-size: var(--fs-100);
    color: var(--muted);
    flex-shrink: 0;
    margin-left: auto;
}

/* ══ VIDÉO ══ */
.video-section {
    padding: 8rem 3rem;
    text-align: center;
    background: var(--bg-white);
    border-top: 1px solid var(--border-ice);
}

.video-section .section-title {
    margin: 0 auto 1rem;
    text-align: center;
}

.video-sub {
    font-size: var(--fs-500);
    color: var(--text-mid);
    max-width: 500px;
    margin: 0 auto 4rem;
    line-height: 1.7;
}

.video-placeholder {
    position: relative;
    max-width: 1060px;
    margin: 0 auto;
    aspect-ratio: 16/9;
    background: var(--teal);
    border: 1px solid var(--border);
    overflow: hidden;
    cursor: pointer;
}

.video-placeholder::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 55% 45% at 50% 35%, rgba(206, 215, 228, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse 30% 50% at 80% 70%, rgba(235, 255, 0, 0.03) 0%, transparent 50%);
    animation: vidAmb 7s ease-in-out infinite alternate;
}

@keyframes vidAmb {
    from {
        opacity: 0.7;
    }
    to {
        opacity: 1;
    }
}

.video-placeholder::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(206, 215, 228, 0.12) 1px, transparent 1px);
    background-size: 36px 36px;
}

.video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 68px;
    height: 68px;
    border: 1px solid rgba(206, 215, 228, 0.4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: background 0.3s, transform 0.3s, border-color 0.3s;
    background: rgba(206, 215, 228, 0.08);
}

.video-placeholder:hover .video-play-btn {
    background: var(--white);
    border-color: var(--white);
    transform: translate(-50%, -50%) scale(1.06);
}

.video-placeholder:hover .play-tri {
    border-left-color: var(--teal);
}

.play-tri {
    width: 0;
    height: 0;
    border-top: 9px solid transparent;
    border-bottom: 9px solid transparent;
    border-left: 16px solid rgba(206, 215, 228, 0.8);
    margin-left: 4px;
    transition: border-left-color 0.3s;
}

.video-caption {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Montserrat', sans-serif;
    font-size: var(--fs-100);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(206, 215, 228, 0.4);
    z-index: 2;
    white-space: nowrap;
}

/* ══ DEMO VIDEO PLAYER ══ */
.video-wrap {
    position: relative;
    max-width: 1060px;
    margin: 0 auto;
    aspect-ratio: 16/9;
    background: #000;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid var(--border);
}

.demo-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ── Overlay ── */
.demo-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.1);
    transition: background 0.3s ease;
    z-index: 2;
}
.demo-overlay.is-playing { background: transparent; }

/* Center play button: visible when paused, hidden when playing */
.demo-center-btn {
    display: flex;
    width: 88px;
    height: 88px;
    opacity: 1;
    transition: background 0.3s, transform 0.3s, border-color 0.3s, opacity 0.25s ease;
}
.demo-overlay.is-playing .demo-center-btn {
    opacity: 0;
    pointer-events: none;
}
.video-wrap:hover .demo-center-btn {
    background: var(--white);
    border-color: var(--white);
    transform: translate(-50%, -50%) scale(1.06);
}
.video-wrap:hover .demo-center-btn .play-tri {
    border-left-color: var(--teal);
}

/* Muted badge — appears when video autoplays muted, click to enable sound */
.demo-muted-badge {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: rgba(0, 0, 0, 0.55);
    border: 1px solid rgba(206, 215, 228, 0.18);
    border-radius: 20px;
    color: rgba(206, 215, 228, 0.9);
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    letter-spacing: 0.04em;
    white-space: nowrap;
    cursor: pointer;
    z-index: 3;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.demo-muted-badge.visible {
    opacity: 1;
    pointer-events: auto;
}

/* ── Controls bar ── */
.demo-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 24px 16px 14px;
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.72));
    z-index: 3;
    cursor: default;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}
.video-wrap.controls-visible .demo-controls {
    opacity: 1;
    transform: translateY(0);
}

/* Small play/pause button */
.demo-ctrl-play {
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    border: 1px solid rgba(206, 215, 228, 0.4);
    border-radius: 50%;
    background: rgba(206, 215, 228, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}
.demo-ctrl-play:hover {
    background: var(--white);
    border-color: var(--white);
}

/* Play triangle */
.demo-play-icon {
    display: block;
    width: 0;
    height: 0;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    border-left: 9px solid rgba(206, 215, 228, 0.9);
    margin-left: 2px;
    flex-shrink: 0;
}
.demo-ctrl-play:hover .demo-play-icon { border-left-color: var(--teal); }

/* Pause bars (SVG via currentColor — identical widths at any DPR) */
.demo-pause-icon {
    display: none;
    align-items: center;
    justify-content: center;
    color: rgba(206, 215, 228, 0.9);
}
.demo-ctrl-play:hover .demo-pause-icon { color: var(--teal); }

.demo-ctrl-play.is-playing .demo-play-icon  { display: none; }
.demo-ctrl-play.is-playing .demo-pause-icon { display: flex; }

/* Progress bar */
.demo-progress {
    flex: 1;
    height: 3px;
    background: rgba(206, 215, 228, 0.2);
    border-radius: 2px;
    cursor: pointer;
    transition: height 0.15s ease;
    position: relative;
}
.demo-progress:hover { height: 5px; }

.demo-progress-fill {
    height: 100%;
    width: 0%;
    background: var(--ice);
    border-radius: 2px;
    pointer-events: none;
}

/* Time display */
.demo-time {
    font-family: 'Montserrat', sans-serif;
    font-size: var(--fs-200);
    color: rgba(206, 215, 228, 0.7);
    letter-spacing: 0.04em;
    white-space: nowrap;
    min-width: 70px;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

/* Fullscreen button */
.demo-ctrl-fs {
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    border: 1px solid rgba(206, 215, 228, 0.4);
    border-radius: 50%;
    background: rgba(206, 215, 228, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: rgba(206, 215, 228, 0.9);
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.demo-ctrl-fs:hover {
    background: var(--white);
    border-color: var(--white);
    color: var(--teal);
}
.fs-exit { display: none; }
.video-wrap.is-fullscreen .fs-enter { display: none; }
.video-wrap.is-fullscreen .fs-exit  { display: block; }

/* Mobile: hide controls bar */
@media (max-width: 960px) {
    .demo-controls { display: none; }
    .video-wrap { cursor: default; }
}

/* ══ GALERIE ══ */
.gallery {
    padding: 8rem 3rem;
    background: var(--bg-light);
    border-top: 1px solid var(--border-ice);
}

.gallery-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 3.5rem;
}

.gallery-pills {
    display: flex;
    gap: 0.4rem;
}

.g-pill {
    font-family: 'Montserrat', sans-serif;
    font-size: var(--fs-100);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0.3rem 0.85rem;
    border: 1px solid var(--border);
    color: var(--muted);
    cursor: pointer;
    transition: all 0.2s;
    background: var(--white);
}

.g-pill.active, .g-pill:hover {
    border-color: var(--teal);
    color: var(--teal);
    background: var(--white);
}

/* Screenshot frames — using real app images */
.gallery-main {
    position: relative;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border);
    overflow: hidden;
    background: var(--ice);
}

.gallery-main img {
    width: 100%;
    display: block;
    transition: transform 0.6s ease;
}

.gallery-main:hover img {
    transform: scale(1.01);
}

.gallery-badge {
    position: absolute;
    bottom: 1.2rem;
    left: 1.2rem;
    font-family: 'Montserrat', sans-serif;
    font-size: var(--fs-100);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--teal);
    background: rgba(242, 246, 250, 0.92);
    padding: 0.3rem 0.65rem;
    border: 1px solid var(--border);
    backdrop-filter: blur(4px);
}

.gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.2rem;
}

.g-thumb {
    border: 1px solid var(--border);
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.25s, transform 0.25s;
    position: relative;
    background: var(--ice);
}

.g-thumb:hover {
    border-color: var(--teal);
    transform: translateY(-2px);
}

.g-thumb img {
    width: 100%;
    display: block;
    transition: transform 0.4s ease;
}

.g-thumb:hover img {
    transform: scale(1.03);
}

.g-thumb-label {
    position: absolute;
    bottom: 0.7rem;
    left: 0.7rem;
    font-family: 'Montserrat', sans-serif;
    font-size: var(--fs-100);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--teal);
    background: rgba(242, 246, 250, 0.9);
    padding: 0.2rem 0.5rem;
    backdrop-filter: blur(4px);
    border: 1px solid var(--border);
}

/* ══ CONTACT ══ */
.contact {
    padding: 9rem 3rem;
    background: var(--bg-white);
    border-top: 1px solid var(--border-ice);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8rem;
    align-items: start;
}

.contact h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: var(--fs-800);
    font-weight: 300;
    line-height: 1.08;
    letter-spacing: -0.01em;
    color: var(--teal);
    margin-bottom: 1.5rem;
}

.contact h2 strong {
    font-weight: 700;
    display: block;
}

.contact-sub {
    font-size: var(--fs-500);
    color: var(--text-mid);
    line-height: 1.72;
    max-width: 380px;
    margin-bottom: 2rem;
}

.contact-email {
    display: inline-block;
    font-family: 'Montserrat', sans-serif;
    font-size: var(--fs-500);
    font-weight: 500;
    color: var(--teal);
    text-decoration: none;
    border-bottom: 1px solid var(--border);
    padding-bottom: 0.15rem;
    transition: border-color 0.2s, color 0.2s;
}

.contact-email:hover {
    border-color: var(--teal);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
}

.field {
    background: var(--white);
    border: 1px solid var(--border);
    padding: 1.1rem 1.3rem;
    display: flex;
    flex-direction: column;
    transition: border-color 0.25s;
    margin-bottom: 1px;
}

.field:focus-within {
    border-color: var(--teal);
}

.field label {
    font-family: 'Montserrat', sans-serif;
    font-size: var(--fs-300);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 0.45rem;
}

.field input, .field textarea {
    background: transparent;
    border: none;
    outline: none;
    color: var(--text);
    font-family: 'Montserrat', sans-serif;
    font-size: var(--fs-500);
    font-weight: 400;
    resize: none;
}

.field textarea {
    min-height: 80px;
}

.field input::placeholder, .field textarea::placeholder {
    color: var(--ice-dark);
}

.form-submit {
    margin-top: 1.5rem;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.btn-submit {
    font-family: 'Montserrat', sans-serif;
    font-size: var(--fs-300);
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    background: var(--teal);
    color: var(--white);
    border: none;
    padding: 1.1rem 2.8rem;
    border-radius: 3px;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.btn-submit:hover {
    background: var(--teal-mid);
    transform: translateY(-1px);
}

.form-note {
    font-family: 'Montserrat', sans-serif;
    font-size: var(--fs-100);
    letter-spacing: 0.1em;
    color: var(--muted);
    line-height: 1.7;
}

.form-feedback {
    font-size: var(--fs-400);
    margin-top: 0.75rem;
    min-height: 1.2em;
}

.form-feedback.ok {
    color: #2a9d5c;
}

.form-feedback.err {
    color: #c0392b;
}

.form-honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* ══ FOOTER ══ */
footer {
    border-top: 1px solid var(--border);
    padding: 1.8rem 3rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-light);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-copy {
    font-family: 'Montserrat', sans-serif;
    font-size: var(--fs-300);
    letter-spacing: 0.08em;
    color: var(--muted);
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    font-family: 'Montserrat', sans-serif;
    font-size: var(--fs-300);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--teal);
}

/* ══ REVEAL ══ */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-d1 {
    transition-delay: 0.1s;
}

.reveal-d2 {
    transition-delay: 0.2s;
}

.reveal-d3 {
    transition-delay: 0.3s;
}

/* ══ JOURNEY ══ */
.journey {
    background: var(--bg-light);
    border-top: 1px solid var(--border-ice);
}

.journey-track {
    position: relative;
    overflow: clip;
}

.journey-sensor-wrap {
    position: relative;
}

.journey-sensor {
    position: absolute;
    top: calc(100vh);
    height: 0;
    width: 100%;
    overflow: visible;
}

.journey-sensor.sticky {
    position: sticky;
    top: var(--header-height);
}

.sensor-image {
    height: calc(100vh - var(--header-height));
    width: 60%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sensor-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    animation: sensor-image-anim 2s alternate infinite ease-in-out;
    transition: opacity 0.5s ease-in-out;
}

.journey-sensor.dim .sensor-image img {
    opacity: 0;
}

@keyframes sensor-image-anim {
    0% {
        transform: translateY(-1%);
    }
    100% {
        transform: translateY(1%);
    }
}

.journey-slot {
    height: calc(100vh - var(--header-height));
    position: relative;
    z-index: 1;
    overflow: hidden;
    display: flex;
    justify-content: flex-end;
    align-items: stretch;
    scroll-snap-align: start;
}

.journey-slot-text {
    width: 40%;
    display: flex;
    align-items: center;
    padding: 4rem 3rem;
}

.jt {
    max-width: 430px;
}

.screen-highlight {
    position: absolute;
    top: 0;
    left: 0;
    width: 60%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
    perspective: 1000px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.screen-highlight::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    box-shadow: inset 0 0 50px 50px #E8EEF4;
}

.alerts-ui-holder {
    overflow-anchor: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    width: 50%;
    transform: rotateX(27deg) rotateY(9deg) rotateZ(-8deg);
    transform-style: preserve-3d;
}

.message-ui {
    transition: all 0.7s 0.2s ease-in-out;
    aspect-ratio: 1920/1038;
    background: url(assets/images/ui/message.webp) center center no-repeat;
    background-size: contain;
    height: 28vh;

    &:nth-child(1) {
        transition-delay: 0.0s;
    }

    &:nth-child(2) {
        transition-delay: 0.1s;
    }

}

.screen-ui-holder {
    --x: 0;
    --y: 0;
    --s: 1;
    position: relative;
    aspect-ratio: 2880/2048;
    width: 100%;
    max-height: 80%;
    max-width: 80%;
    transform: scale(var(--s)) translate(calc(var(--x) * 1%), calc(var(--y) * 1%)) rotate3d(0.5, -1, 0, 20deg);
    transform-style: preserve-3d;
    transition: all 0.5s ease-in-out;

    --upscale: 2;
}

.screen-ui-zoomed {
    --upscale: 2;
    position: absolute;
    height: 150%;
    top: 50%;
    left: 50%;
    aspect-ratio: 2880/2048;
    transform: translate(-40%, -50%) rotate3d(0.5, -1, 0, 20deg);
    transform-style: preserve-3d;
    transition: all 0.5s ease-in-out;
}

.screen-ui-fullscreen {
    position: absolute;
    top: 45%;
    left: 52%;
    width: calc(var(--upscale) * 100%);
    transition: all 0.7s 0.2s ease-in-out;
    transform: translate(-50%, -50%) scale(calc(0.9 * 1 / var(--upscale)));
}

.screen-ui {
    position: absolute;
    width: calc(var(--upscale) * 100%);
    border-radius: 10px;
    box-shadow: 20px 20px 40px 0 rgba(from var(--shadow) r b g / alpha);
    transition: all 0.7s 0.2s ease-in-out;
    transform: scale(calc(1 / var(--upscale)));
    transform-origin: top left;
}

.screen-ui-focus {
    position: absolute;
    opacity: 1;

    --x: 0;
    --y: 0;
    --w: 30;

    width: calc(var(--w) * 1% * var(--upscale));
    left: calc(var(--x) * 1%);
    top: calc(var(--y) * 1%);
    border-radius: 10px;
    box-shadow: 20px 20px 40px rgba(from var(--shadow) r b g / 0);
    transition: all 0.7s 0.2s ease-in-out;
    transform: translate(-50%, -50%) translateZ(0) scale(calc(1 / var(--upscale)));
}


.screen-highlight {
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.screen-highlight.focused {
    opacity: 1;
}

.screen-highlight.focused .screen-ui {
    opacity: 0.2;
}

.screen-highlight.focused .screen-ui-focus {
    opacity: 1;
    transform: translate(-50%, -50%) translateZ(5vh) scale(calc(1 / var(--upscale)));
    box-shadow: 20px 20px 40px 0px rgb(from var(--shadow) r b g / alpha);
}

.screen-highlight.focused .screen-ui-fullscreen {
    transform: translate(-50%, -50%) scale(calc(1 * 1 / var(--upscale)));
}


.message-ui.blurred {
    filter: blur(5px);
    opacity: 0.2;
}

.message-ui.main {
    transform: translateZ(50px);
}

.message-ui.invisible {
    height: 0;
    opacity: 0;
}

.jt-num {
    font-family: 'Montserrat', sans-serif;
    font-size: var(--fs-300);
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--muted);
    display: block;
    margin-bottom: 1.2rem;
}

.jt-headline-row {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    margin-bottom: 1.2rem;
}

.jt-sq-icon {
    flex-shrink: 0;
    margin-top: 7px;
}

.jt-hl {
    font-family: 'Montserrat', sans-serif;
    font-size: var(--fs-600);
    font-weight: 700;
    color: var(--teal);
    line-height: 1.3;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin: 0;
}

.jt-body {
    font-size: var(--fs-500);
    color: var(--text-mid);
    line-height: 1.75;
}

.journey-sensor-mobile-holder {
    display: none;
}

/* ══ RESPONSIVE ══ */

@media (max-width: 1200px) {
    html{
        font-size:17px;
    }
    nav{
        gap: 0.9rem;
    }
    .hero-content{
        gap: 1rem;
    }
    .hero{
        padding: 40px;
    }
}
@media (max-width: 960px) {
    html {
        font-size: clamp(10px, 4vw, 22px);
    }

    .hero {
        height: calc(100svh - var(--header-height) - var(--mobile-demo-footer-height));
        padding: 0 1.5rem 4rem;
        justify-content: flex-end;
    }

    .logo-hero {
        height: auto;
        width: 80%;
    }

    .logo-img {
        height: 100%;
    }

    header {
        padding: 0 1.5rem;
        grid-template-columns: 1fr;
        justify-items: center;
    }

    nav {
        display: none;
    }

    .btn-demo {
        display: none;
    }

    .hero-cta {
        display: none;
    }

    .mobile-demo-footer {
        display: flex;
        justify-content: center;
        align-items: center;
        height: calc(var(--mobile-demo-footer-height) + env(safe-area-inset-bottom, 0px));
    }

    .mobile-demo-footer .btn-demo {
        max-width: 290px;
    }

    .benefits, .contact, .video-section {
        padding: 5rem 1.5rem;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
        grid-template-rows: 1fr;
    }

    .benefit-card {
        border-right: none;
        border-bottom: 1px solid var(--border);
    }

    .why-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .contact {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

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

    footer {
        flex-direction: column;
        gap: 1.2rem;
        text-align: center;
        padding: 2rem 1.5rem;
    }

    .journey-sensor {
        display: none;
    }


    .journey-sensor-mobile-holder {
        display: block;
        height: 100vw;
        width: 0;
        margin: 0 auto 1.5rem;
    }


    .journey-sensor-mobile {
        height: 100%;
        left: 0;
        translate: -50% 0;
        object-fit: contain;
    }

    .journey-slot-text {
        flex-direction: column;
        align-items: center;
    }

    .screen-highlight {
        position: relative;
        width: 100%;
        height: 60vw;
        top: auto;
        left: auto;
        overflow: hidden;
    }

    .screen-highlight.m-large {
        height: 80vw;
    }

    .screen-highlight::after {
        box-shadow: inset 0 0 3vw 3vw #E8EEF4;
    }

    .screen-ui-holder {
        height: 90%;
        width: auto;
        max-width: unset;
        max-height: unset;
    }

    .message-ui {
        height: auto;
        width: 70vw;
    }

    .message-ui.invisible {
        height: auto;
        width: 0;
    }

    .journey-slot {
        height: auto;
        flex-direction: column;
    }

    .journey-slot-text {
        width: 100%;
        border-left: none;
        padding: 2.5rem 1.5rem;
        justify-content: center;
        text-align: center;
    }

    .jt-headline-row {
        justify-content: center;
    }

    .jt {
        margin-bottom: 2rem;
        border-bottom: 1px solid var(--border-ice);
        padding-bottom: 2rem;
    }

    .jt:last-child {
        border-bottom: none;
        margin-bottom: 0;
    }
    .logo-wrap{
        margin-right:0;
    }
    .benefits-intro{
        font-size: var(--fs-600);
        margin: 4rem auto 1rem;
    }
}

@media (min-width: 1400px) {
    nav {
        gap: 2.5rem;
    }
}