/* =================================
   PLAIN FONT
================================= */

@font-face {
    font-family: "Plain";
    src: url("fonts/work-sans/static/work-sans-latin-300-normal.woff2") format("woff2"),
         url("fonts/work-sans/static/work-sans-latin-300-normal.woff") format("woff");
    font-weight: 300;
}

@font-face {
    font-family: "Plain";
    src: url("fonts/work-sans/static/work-sans-latin-400-normal.woff2") format("woff2"),
         url("fonts/work-sans/static/work-sans-latin-400-normal.woff") format("woff");
    font-weight: 400;
}

@font-face {
    font-family: "Plain";
    src: url("fonts/work-sans/static/work-sans-latin-700-normal.woff2") format("woff2"),
         url("fonts/work-sans/static/work-sans-latin-700-normal.woff") format("woff");
    font-weight: 700;
}


/* =================================
   GLOBAL RESET
================================= */

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

html{
    width:100%;
    height:100%;
    scroll-behavior:smooth;
}

body{
    width:100%;
    min-height:100vh;

    display:flex;
    flex-direction:column;

    margin:0;
    padding:0;
    overflow-x:hidden;

    background:#0a0a0a;
}

/* =================================
   TYPOGRAPHY
================================= */

body{

    font-family:"Plain",Arial,sans-serif;

    font-weight:300;

    font-size:18px;

    line-height:1.7;

    letter-spacing:.005em;

    color:#F4F4F2;

    text-rendering:optimizeLegibility;

    -webkit-font-smoothing:antialiased;

    -moz-osx-font-smoothing:grayscale;

    background:
        linear-gradient(
            rgba(0,0,0,.28),
            rgba(0,0,0,.28)
        ),
        url("images/webDESKTOP.png")
        center center / cover
        no-repeat
        fixed;
}

/* =================================
   HEADINGS
================================= */

h1,
.hero h1{

    font-family:"Plain",sans-serif;

    font-size:clamp(2.4rem,5vw,3.8rem);

    font-weight:700;

    line-height:1.02;

    letter-spacing:-.045em;

    max-width:14ch;

    margin-bottom:1rem;
    text-shadow:
        0 2px 8px rgba(0,0,0,.80),
        0 0 20px rgba(0,0,0,.40);

}

h2,
.panel h2{

    font-family:"Plain",sans-serif;

    font-size:clamp(1.7rem,3vw,2.5rem);

    font-weight:700;

    line-height:1.08;

    letter-spacing:-.03em;

    margin-bottom:.9rem;

}

h3,
.card h3{

    font-family:"Plain",sans-serif;

    font-size:1.2rem;

    font-weight:700;

    line-height:1.25;

    letter-spacing:-.015em;

    margin-bottom:.7rem;

}

/* =================================
   BODY TEXT
================================= */

p{

    font-size:1.05rem;

    font-weight:300;

    line-height:1.8;

    color:#D8D8D8;



    margin-bottom:1.6rem;

}


/* =================================
   LABELS
================================= */

small,
.subtitle,
.eyebrow{

    display:inline-block;

    font-size:.78rem;

    font-weight:700;

    text-transform:uppercase;

    letter-spacing:.22em;

    color:#B3B3B3;

    margin-bottom:.75rem;

}


/* =================================
   HEADER
================================= */

header{

    display:flex;

    justify-content:space-between;

    align-items:center;

    padding:2rem 5%;

    position:sticky;

    top:0;

    z-index:100;

    background:rgba(0,0,0,.18);

    backdrop-filter:blur(10px);

}


/* =================================
   SIMPLE CONTAINERS
================================= */

.section{

    width:min(1200px,92%);

    margin:0 auto;

    padding:7rem 0;

}

.text{

    max-width:680px;

}


/* =================================
   CARDS
================================= */

.card{

    background:rgba(255,255,255,.03);

    border:1px solid rgba(255,255,255,.06);

    transition:.35s ease;

}

.card:hover{

    transform:translateY(-6px);

    background:rgba(255,255,255,.05);

}

.card img{

    width:100%;

    display:block;

}


/* =================================
   BUTTONS
================================= */
button,
.btn{

    font-family:"Plain",sans-serif;

    font-weight:600;

    font-size:.95rem;

    letter-spacing:.02em;

    text-transform:none;

}


/* =================================
   NAVIGATION
================================= */

nav a{

    font-family:"Plain",sans-serif;

    font-size:1rem;

    font-weight:400;

    letter-spacing:.02em;

    text-transform:none;

}


/* =================================
   MOBILE
================================= */

@media (max-width:768px){

    body{

        font-size:17px;

    }

    h1,
    .hero h1{

        font-size:clamp(2.3rem,9vw,3.5rem);

        max-width:12ch;

    }

    h2{

        font-size:clamp(1.7rem,6vw,2.4rem);

    }

    p{

        max-width:100%;

    }

}

/* =================================
   nAV
================================= */
nav{
    position:fixed;
    top:24px;
    left:50%;
    transform:translateX(-50%) translateY(-30px);

    width:min(1200px,92%);
    height:78px;
    display:flex;
    align-items:center;
    padding:0 28px;
    background:rgba(1,1,1,.80);
    backdrop-filter:blur(2px);
    border:1px solid rgba(255,255,255,.08);
    border-radius:8px;
    z-index:100;

    opacity:0;

transition:
        opacity 1.4s ease,
        transform 1.8s cubic-bezier(0.16, 1, 0.3, 1);
}

nav.show{
    opacity:1;
    transform:translateX(-50%) translateY(0);
}

/* Real navbar logo (hidden until landing animation finishes) */
.logo{
    opacity:0;
    flex-shrink:0;
    transition:opacity .35s ease;
}

.logo.show{

    animation:logoPowerOn .7s forwards;

}


@keyframes logoPowerOn{

    0%{
        opacity:0;
        filter:brightness(0);
    }

    15%{
        opacity:.8;
        filter:brightness(4);
    }

    30%{
        opacity:.3;
        filter:brightness(1);
    }

    50%{
        opacity:1;
        filter:brightness(3);
    }

    70%{
        opacity:.7;
        filter:brightness(1);
    }

    100%{
        opacity:1;
        filter:brightness(1);
    }

}

.logo-img{
    height:50px;
    width:auto;
    display:block;
} 
.menu{

    margin:0 auto;

    display:flex;

    gap:55px;

    padding-top:4px;

}


.menu a{

    display:inline-block;

    position:relative;

    color:#fff;

    text-decoration:none;

    font-size:13px;

    letter-spacing:2px;

    line-height:1;

    transform:translateY(0);

    transition:
        color .3s ease,
        transform .3s ease;

}

/* Underline */
.menu a::after{

    content:"";

    position:absolute;

    left:50%;

    bottom:-3px;

    width:100%;

    height:2px;

    background:#a50000;

    transform:
        translateX(-50%)
        scaleX(0)
        translateY(0);

    transform-origin:center;

    transition:
        transform .3s ease;

}

/* Active page */
.menu a.active{

    color:#a50000;

}

.menu a.active::after{

    transform:
        translateX(-50%)
        scaleX(1)
        translateY(0);

}

/* Hover */
.menu a:hover{

    color:#a50000;

    transform:translateY(-2px);

}

.menu a:hover::after{

    transform:
        translateX(-50%)
        scaleX(1)
        translateY(2px);

}

/* Active page hovered */
.menu a.active:hover{

    transform:translateY(-2px);

}

.menu a.active:hover::after{

    transform:
        translateX(-50%)
        scaleX(1)
        translateY(2px);

}

.menu a span{
    display:inline-block;
    transition:transform .3s ease, color .3s ease;
}

.menu a:hover span{
    transform:translateY(-2px);
}



/* Underline animation */
.menu a:hover::after,
.menu a.active::after{

    transform:
        translateX(-50%)
        scaleX(1)
        translateY(2px);

} 


@media (max-width:1300px){

    .menu{
        gap:48px;
    }

    .menu a{
        font-size:13px;
        letter-spacing:2px;
    }

}

@media (max-width:1180px){

    .menu{
        gap:40px;
    }

    .menu a{
        font-size:12.5px;
        letter-spacing:1.8px;
    }

}

@media (max-width:1080px){

    .menu{
        gap:32px;
    }

    .menu a{
        font-size:12px;
        letter-spacing:1.5px;
    }

}

@media (max-width:950px){

    .menu{
        gap:24px;
    }

    .menu a{
        font-size:11.5px;
        letter-spacing:1.2px;
    }

}


    
        /* Hamburger */        
        .hamburger{            
            display:none;            
            font-size:16px;            
            cursor:pointer;            
            color:#fff;            
            z-index:1000;            
            position:relative;
            width:28px;
            height:28px;
        }
        /* Animated Hamburger */
        .hamburger span {
            position: absolute;
            left: 0;
            width: 100%;
            height: 2px;
            background: #fff;
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        }
        .hamburger span:nth-child(1) { top: 6px; }
        .hamburger span:nth-child(2) { top: 13px; }
        .hamburger span:nth-child(3) { top: 20px; }
        .hamburger.open span:nth-child(1) {
            top: 13px;
            transform: rotate(45deg);
        }
        .hamburger.open span:nth-child(2) {
            opacity: 0;
        }
        .hamburger.open span:nth-child(3) {
            top: 13px;
            transform: rotate(-45deg);
        }

        /* Mobile Dropdown Menu */
        .mobile-menu {
            position: fixed;
            top: 78px;
            left: 50%;
            transform: translateX(-50%) translateY(-20px);
            width: min(92%, 420px);
            background: rgba(0,0,0,0.70);
            backdrop-filter: blur(16px);
            border: 1px solid rgba(255,255,255,.1);
            border-radius: 16px;
            opacity: 0;
            visibility: hidden;
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            z-index: 99;
            overflow: hidden;
        }
        .mobile-menu.open {
            opacity: 1;
            visibility: visible;
            transform: translateX(-50%) translateY(12px);
        }
        .mobile-menu ul {
            list-style: none;
        }
        .mobile-menu a {
            display: block;
            color: #fff;
            text-decoration: none;
            font-size: 13px;
            padding: 22px 32px;
            letter-spacing: 1.5px;
            border-bottom: 1px solid rgba(255,255,255,.08);
            transition: all 0.3s ease;
        }
        .mobile-menu a:last-child {
            border-bottom: none;
        }
        .mobile-menu a:hover,
        .mobile-menu a.active {
            color: #d60000;
            padding-left: 42px;
            background: rgba(214, 0, 0, 0.1);
        }


.hero {
    position: relative;
    width: min(1200px, 100%);
    height: 500px;
    margin: 0 auto 25px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    border-radius: 18px;
    background-repeat: no-repeat;
    background-position: center -20px;
    background-size: cover;
}
.heroccon {
    position: relative;
    width: min(1200px, 100%);
    height: 200px;
    margin: 0 auto 25px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    border-radius: 18px;
    background-repeat: no-repeat;
    background-position: center -20px;
    background-size: cover;
}

.heroccon::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0,0,0,.78),
        rgba(0,0,0,.20)
    );
}


/* ==========================================
   HERO IMAGES (one per page)
========================================== */
.hero-about {
    background-image: url("images/hero_MAIN.webp");
}
.hero-shop {
    background-image: url("images/hero_shop.webp");
}
.hero-installer {
    background-image: url("images/hero_installer.webp");
}
.hero-support {
    background-image: url("images/hero_support.webp");
}
.hero-concept {
    background-image: url("images/hero_concepts.webp");
}
.hero-contact {
    background-image: url("images/hero_contact.webp");
}

.hero::before{
    content:"";
    position:absolute;
    inset:0;

    background:linear-gradient(
        to top,
        rgba(0,0,0,.78),
        rgba(0,0,0,.20)
    );

    z-index:1;
}

.hero-content{
    position:relative;
    z-index:2;
    padding:60px;

    opacity:0;
    transform:translateX(-70px);
    transition:
        opacity 0.9s ease,
        transform 0.9s cubic-bezier(.22,1,.36,1);
}

.hero-content.animate{
    opacity:1;
    transform:translateX(0);
}
@media (max-width: 768px) {

    .hero {
        display: flex;
        align-items: flex-end;
        justify-content: flex-start;

        /* Mobile image settings */
        background-size: cover;
    }

    /* About */
    .hero-about {
        background-image: url("images/hero_MAIN_mobile.webp");
      background-position: 30% top; 
    }

    /* Shop */
    .hero-shop {
      background-position: 85% top; 
    }

    /* Installer */
    .hero-installer {
      background-position: center top;
    }

    /* Support */
    .hero-support {
      background-position: center top;
    }

    /* Concept */
    .hero-concept {
      background-position: center top;
    }

    /* Contact */
    .hero-contact {
      background-position: center top;
    }
}

/* ==========================================================
   FLOATING ACTION MENU
========================================================== */

.floating-menu{

    position:fixed;
    bottom:50px;
    right:50px;

    display:block;

    z-index:9999;

    opacity:0;
    transform:translateY(40px);

transition:
    opacity 1.8s ease,
    transform 1.8s cubic-bezier(.16,1,.3,1);

}

.floating-menu.show{

    opacity:1;
    transform:translateY(0);

}



.menu-overlay{

    position:fixed;
    inset:0;

    background:rgba(0,0,0,.50);

    backdrop-filter:blur(2px);
    -webkit-backdrop-filter:blur(2px);

    opacity:0;
    visibility:hidden;

    transition:
        opacity .35s ease,
        backdrop-filter .35s ease;

    z-index:9998;

}

.menu-overlay.show{

    opacity:1;
    visibility:visible;

}



/* ==========================================================
   MAIN BUTTON
========================================================== */

.floating-btn{

    width:64px;
    height:64px;

    position:relative;

    cursor:pointer;

    overflow:visible;

    z-index:100;

}


/* ==========================================================
   RING
========================================================== */

.menu-ring{

    position:absolute;
    inset:0;

    width:64px;
    height:64px;

    z-index:10;

    animation:ringPulse 3s ease-in-out infinite;

    transition:
        transform .45s ease;
    transition:
        transform .55s cubic-bezier(.22,1,.36,1),
        opacity .35s ease;

}


/* ==========================================================
   LOGO
========================================================== */

.menu-logo{

    position:absolute;

    inset:0;

    width:64px;
    height:64px;

    z-index:20;

    animation:logoPulse 3s ease-in-out infinite;

    transition:
        transform .45s ease;

}

.menu-question{

    position:absolute;
    inset:0;

    width:64px;
    height:64px;

    padding:13px;          /* scales your 400x400 image */

    opacity:0;

    pointer-events:none;

    z-index:21;

}

.logo-hide{

    animation:logoSlideAway .7s forwards;

}

.question-show{

    animation:questionIntro 1.15s forwards;

}

.question-hide{

    animation:questionExit .75s forwards;

}

.logo-show{

    animation:logoReturn .35s forwards;

}



@keyframes logoSlideAway{

0%{

    opacity:1;
    transform:translateY(0);

}

100%{

    opacity:0;
    transform:translateX(-26px);

}

}

@keyframes questionIntro{

0%{

    opacity:0;

    transform:
        translateY(-65px)
        scale(.2)
        rotate(0deg);

}

35%{

    opacity:1;

    transform:
        translateY(8px)
        scale(1.18)
        rotate(420deg);

}

55%{

    transform:
        translateY(-10px)
        scale(.95)
        rotate(360deg);

}

75%{

    transform:
        translateY(4px)
        scale(1.05);

}

100%{

    opacity:1;

    transform:
        translateY(0)
        scale(1);

}

}

@keyframes questionExit{

0%{

    opacity:1;

    transform:
        translateY(0)
        scale(1);

}

40%{

    transform:
        translateY(10px)
        scale(.9);

}

100%{

    opacity:0;

    transform:
        translateY(-80px)
        scale(.2);

}

}

@keyframes logoReturn{

0%{

    opacity:0;

    transform:
        translateX(26px);

}

100%{

    opacity:1;

    transform:
        translateX(0);

}

}

/* ==========================================================
   GLOW
========================================================== */

@keyframes ringPulse{

0%,100%{

filter:
drop-shadow(0 0 2px rgba(255,0,0,.18))
drop-shadow(0 0 8px rgba(255,0,0,.12));

}

35%{

filter:
drop-shadow(0 0 10px rgba(255,0,0,.8))
drop-shadow(0 0 28px rgba(255,0,0,.65));

}

55%{

filter:
drop-shadow(0 0 2px rgba(255,0,0,.12));

}

}

@keyframes logoPulse{

0%,40%,100%{

filter:
drop-shadow(0 0 2px rgba(255,255,255,.12));

}

60%{

filter:
drop-shadow(0 0 10px rgba(255,255,255,.85))
drop-shadow(0 0 20px rgba(255,255,255,.65));

}

}

.menu-close{

    position:absolute;
    inset:0;

    width:64px;
    height:64px;

    padding:1px;

    opacity:0;
    visibility:hidden;

    transform:rotate(-180deg) scale(.6);

    pointer-events:none;

    z-index:25;

    transition:
        transform .55s cubic-bezier(.22,1,.36,1),
        opacity .35s ease,
        visibility 0s linear .55s;

}

.menu-close.spin-out{

    animation:closeSpinOut .7s ease-in forwards;

}

@keyframes closeSpinOut{

    0%{
        opacity:1;
        transform:rotate(0deg) scale(1);
    }

    100%{
        opacity:0;
        transform:rotate(900deg) scale(.6);
    }

}
.floating-btn.open .menu-ring{

    opacity:0;
    transform:scale(.6) rotate(180deg);

}

.floating-btn.open .menu-logo,
.floating-btn.open .menu-question{

    opacity:0 !important;
    animation:none !important;
    transform:none !important;
    pointer-events:none;

}
.floating-btn.open .menu-close{

    opacity:1;
    visibility:visible;

    transform:rotate(0deg);

    filter:
        drop-shadow(0 0 6px rgba(255,255,255,.90))
        drop-shadow(0 0 16px rgba(255,255,255,.20));

    transition-delay:0s;

}
.floating-btn.open{

    filter:
        drop-shadow(0 0 10px rgba(214,0,0,.85))
        drop-shadow(0 0 26px rgba(214,0,0,.55));

}

/* ==========================================================
   ORBS
========================================================== */

.orb{

    position:absolute;

    z-index:30;

    width:4px;
    height:4px;

    border-radius:50%;

    background:rgba(255,255,255,.35);

    box-shadow:
        0 0 5px rgba(255,255,255,.35),
        0 0 10px rgba(255,255,255,.22);

    pointer-events:none;

}

.orb1{animation:orbit1 11s linear infinite;}
.orb2{animation:orbit2 13s linear infinite;}
.orb3{animation:orbit3 12s linear infinite;}
.orb4{animation:orbit4 15s linear infinite;}
.orb5{animation:orbit5 10s linear infinite;}
.orb6{animation:orbit6 14s linear infinite;}


/* ==========================================================
   ORBITS (LARGER RADIUS)
========================================================== */

@keyframes orbit1{

0%{transform:translate(-8px,22px);}
25%{transform:translate(70px,-8px);}
50%{transform:translate(78px,72px);}
75%{transform:translate(-10px,80px);}
100%{transform:translate(-8px,22px);}

}

@keyframes orbit2{

0%{transform:translate(58px,-10px);}
50%{transform:translate(-12px,68px);}
100%{transform:translate(58px,-10px);}

}

@keyframes orbit3{

0%{transform:translate(30px,-14px);}
50%{transform:translate(84px,42px);}
100%{transform:translate(30px,-14px);}

}

@keyframes orbit4{

0%{transform:translate(-14px,34px);}
50%{transform:translate(68px,88px);}
100%{transform:translate(-14px,34px);}

}

@keyframes orbit5{

0%{transform:translate(82px,18px);}
50%{transform:translate(-8px,-6px);}
100%{transform:translate(82px,18px);}

}

@keyframes orbit6{

0%{transform:translate(18px,84px);}
50%{transform:translate(66px,-10px);}
100%{transform:translate(18px,84px);}

}


/* ==========================================================
   BUTTON HOVER
========================================================== */

.floating-btn:hover .menu-ring{

    transform:scale(1.08);

}

.floating-btn:hover .menu-logo{

    transform:scale(1.08);

}


/* ==========================================================
   OPEN
========================================================== */



/* ==========================================================
   SOFT GLOW
========================================================== */

@keyframes menuGlow{

0%,100%{

filter:
drop-shadow(0 0 6px rgba(255,255,255,.18));

}

50%{

filter:
drop-shadow(0 0 14px rgba(255,255,255,.40));

}

}


/* ==========================================================
   CONTAINER
========================================================== */

.floating-items{

    position:absolute;

    right:6px;

    bottom:88px;

    width:280px;

    height:360px;

    pointer-events:none;

}


/* ==========================================================
   ITEMS
========================================================== */

.floating-item{

    position:absolute;

    right:0;

    display:flex;

    align-items:center;

    text-decoration:none;

    opacity:0;

    transform:
        translateY(30px)
        scale(.88);

    transition:
        transform .55s cubic-bezier(.16,1,.3,1),
        opacity .35s;

}


/* ==========================================================
   ITEM POSITIONS
========================================================== */

.floating-item:nth-child(1){

    bottom:285px;
    transition-delay:.05s;

}

.floating-item:nth-child(2){

    bottom:190px;
    transition-delay:.12s;

}

.floating-item:nth-child(3){

    bottom:95px;
    transition-delay:.19s;

}

.floating-item:nth-child(4){

    bottom:0;
    transition-delay:.26s;

}


/* ==========================================================
   OPEN
========================================================== */

.floating-items.open{

    pointer-events:auto;

}

.floating-items.open .floating-item{

    opacity:1;

    transform:
        translateY(0)
        scale(1);

}


/* ==========================================================
   LABELS
========================================================== */

.floating-item span{

    display:block;

    margin-right:0;
    padding:0;

    background:none;
    border:none;
    box-shadow:none;

    color:#fff;

    font-size:13px;
    letter-spacing:2px;
    white-space:nowrap;

    opacity:0;

    transform:translateX(12px);

    text-shadow:none;

    transition:
        opacity .3s ease,
        transform .35s ease,
        color .25s ease;

}


/* ==========================================================
   ICONS
========================================================== */

.floating-item img{

    width:56px;
    height:56px;

    display:block;

    padding:12px;

    background:rgba(24,24,24,.85);

    /* REMOVE BLUR */
    /* backdrop-filter:blur(20px); */
    /* -webkit-backdrop-filter:blur(20px); */

    border:1px solid rgba(255,255,255,.08);

    border-radius:50%;

    box-shadow:
        0 12px 30px rgba(0,0,0,.45),
        inset 0 1px 1px rgba(255,255,255,.08);

    opacity:.96;

    transition:
        transform .35s cubic-bezier(.22,1,.36,1),
        box-shadow .35s,
        background .35s;

    transform-origin:center;

    will-change:transform;

}


.floating-item:hover img{

    transform:scale(1.08) translateY(-3px);

    background:rgba(45,45,45,.95);

    box-shadow:
        0 0 12px rgba(255,255,255,.15),
        0 18px 40px rgba(0,0,0,.55);

}


/* ==========================================================
   DESKTOP
========================================================== */

@media (min-width:769px){

    .floating-menu{

        bottom:28px;
        right:28px;

    }

}

/* Mobile floating menu sizing */
@media (max-width:768px){
    .floating-menu{
        bottom:20px;
        right:18px;
    }
    .floating-btn{
        width:54px;
        height:54px;
    }
    .floating-btn img{
        width:54px;
        height:54px;
    }
}



.floating-item:hover span{

    background:rgba(36,36,36,.72);

    box-shadow:
        0 0 18px rgba(255,255,255,.00),
        0 18px 40px rgba(0,0,0,.45);

}


/* =================================
   LABEL CONTAINER
================================= */

.floating-label{

    display:flex;
    align-items:center;

    justify-content:flex-end;

    margin-right:14px;

}

.label-group{

    display:flex;
    align-items:center;

    gap:10px;

    transform:translateX(0);

    transition:transform .35s cubic-bezier(.16,1,.3,1);

}

.label-group span{

    color:#fff;

    font-size:13px;

    letter-spacing:2px;

    white-space:nowrap;

    background:none;
    border:none;
    box-shadow:none;

}

.connector-dot{

    width:10px;
    height:10px;

    border-radius:50%;

    position:relative;

    border:1px solid rgba(143,0,0,.55);

    background:rgba(143,0,0,.04);

    box-shadow:
        0 0 4px rgba(143,0,0,.22),
        0 0 10px rgba(143,0,0,.10);

    flex-shrink:0;

}

.connector-dot::after{

    content:"";

    position:absolute;

    width:5px;
    height:5px;

    left:50%;
    top:50%;

    transform:translate(-50%,-50%);

    border-radius:50%;

    background:#fff;

}

.connector-line{

    width:34px;
    height:1px;

    margin-left:-4px;

    background:#8f0000;

    opacity:0;

    transform:scaleX(0);

    transform-origin:left center;

    transition:

        transform .35s cubic-bezier(.16,1,.3,1),
        opacity .25s ease;

    box-shadow:

        0 0 5px rgba(143,0,0,.28);

}

.floating-item:hover .label-group{

    transform:translateX(-14px);

}

.floating-item:hover .connector-line{

    opacity:1;

    transform:scaleX(1);

}

.floating-item:hover .connector-dot{

    box-shadow:

        0 0 6px rgba(143,0,0,.45),
        0 0 14px rgba(143,0,0,.18);

}

/* =================================
   LABEL TEXT
================================= */

.floating-label span{

    color:#fff;

    font-size:13px;

    letter-spacing:2px;

    white-space:nowrap;


}
/* =================================
   LABEL LINE
================================= */

/* ===============================
   LABEL CONNECTOR
================================ */

.label-connector{

    display:flex;
    align-items:center;

    margin:0 8px;

    transform-origin:right center;
    transform:scaleX(0);

    opacity:0;

    transition:
        transform .35s ease,
        opacity .25s ease;

}

/* Outer ring */


/* White center */


/* Connecting line */

.connector-line{

    width:28px;
    height:1px;

    margin-left:-4px;

    background:rgba(143,0,0,.45);

    box-shadow:
        0 0 3px rgba(143,0,0,.18);

}

.floating-items.open .floating-item .label-connector{

    opacity:1;
    transform:scaleX(1);

}
.floating-items.open .floating-item span{

    opacity:1;

    transform:translateX(0);

}

.floating-item:nth-child(1) span{

    transition-delay:.28s;

}

.floating-item:nth-child(2) span{

    transition-delay:.20s;

}

.floating-item:nth-child(3) span{

    transition-delay:.12s;

}

.floating-item:nth-child(4) span{

    transition-delay:.04s;

}

/* =================================
   AI ICON ANIMATIONS
================================= */

.floating-item img{
    transition:
        transform .35s cubic-bezier(.16,1,.3,1),
        box-shadow .35s,
        background .35s;
}

/* AI icon */
.floating-item:nth-child(4) img{
    animation: aiPulse 5s ease-in-out infinite;
    transition:
        transform .25s ease,
        filter .25s ease;
}

/* Menu opening */
.floating-items.open .floating-item img{
    animation: popIcon .35s ease;
}

/* AI icon when menu opens */
.floating-items.open .floating-item:nth-child(4) img{
    animation:
        popIcon .35s ease,
        aiPulse 4s ease-in-out .5s infinite;
}

/* AI hover */
.floating-items.open .floating-item:nth-child(4):hover img{
    animation-play-state: paused;

    transform: scale(1.08) !important;

    filter:
        drop-shadow(0 0 5px rgba(255,0,0,.8))
        drop-shadow(0 0 12px rgba(255,0,0,.45)) !important;
}

/* =================================
   KEYFRAMES
================================= */

@keyframes popIcon{

    0%{
        transform: scale(.75);
    }

    70%{
        transform: scale(1.12);
    }

    100%{
        transform: scale(1);
    }

}

@keyframes aiPulse{

    0%, 80%, 100%{
        transform: scale(1);
        filter:
            drop-shadow(0 0 0 rgba(255,255,255,0));
    }

    84%{
        transform: scale(1.08);
        filter:
            drop-shadow(0 0 8px rgba(255,255,255,.9))
            drop-shadow(0 0 20px rgba(255,255,255,.45));
    }

    88%{
        transform: scale(.98);
    }

    92%{
        transform: scale(1.05);
    }

}

/* =================================
   GENERAL HOVER
================================= */

.floating-item:hover span{
    transform:
        translateX(-4px)
        scaleX(1);

    background: rgba(38,38,38,.01);
}

.floating-item:hover img{
    transform: scale(1.08);
}
/* Mobile */
@media (max-width:768px){

    body{
        background:
            linear-gradient(rgba(0,0,0,.08), rgba(0,0,0,.08)),
            url("images/webMOBILE.png") center/cover no-repeat fixed;
    }

    nav{
        top:15px;
        height:68px;
        padding:0 20px;
        justify-content:space-between;
    }

    .logo{
        position:absolute;
        left:50%;
        transform:translateX(-50%);
    }

    .logo-img{
        content:url("images/mobile_white_logo.png");
        height:50px;
    }

    .menu{
        display:none;
    }

    .hamburger{
        display:block;
    }

    main{
        margin:100px auto 80px;
        padding:18px;
    }

    h1{
        font-size:50px;
    }

    /* Make chat full-width on mobile */
    .panel{
        padding-left:0;
        padding-right:0;
        border-radius:0;
        border-left:none;
        border-right:none;
    }

    .chat-window{
        border-radius:0;
        border-left:none;
        border-right:none;
    }

.cards{
    grid-template-columns: 1fr;
}

    /* Floating Menu - Mobile Only */
    .floating-menu{
        display:block;
    }

}       
        /* Main Content */        
main{
    flex:1;

    max-width:1200px;
    margin:80px auto 60px;
    padding:20px;
}      
        .small{color:#d60000;letter-spacing:3px;font-size:13px}        
        h1{font-size:40px;line-height:1.05;margin:15px 0}        
        .line{width:120px;height:2px;background:#d60000;margin:20px 0}        
        .panel{margin-top:0px;background:rgba(0,0,0,.15);backdrop-filter:blur(2px);border:1px solid rgba(255,255,255,.08);border-radius:18px;padding:40px}        
        .panel p{line-height:1.9;color:#ddd}        
        .cards{            
            display:grid;            
            grid-template-columns:repeat(auto-fit,minmax(220px,1fr));            
            gap:22px;            
            margin-top:35px;        
        }        
        .card{            
            position:relative;            
            overflow:hidden;            
            height:150px;            
            border:1px solid rgba(255,255,255,.06);            
            border-radius:14px;            
            display:flex;            
            flex-direction:column;            
            justify-content:flex-end;            
            padding:28px;            
            cursor:pointer;        
        }        
        /* Background Image Layer */        
        .card::after{            
            content:"";            
            position:absolute;            
            inset:0;            
            background-size:cover;            
            background-position:center;            
            transition: transform 1.8s cubic-bezier(0.25, 0.1, 0.25, 1);            
            transform: scale(1);            
            z-index: -1;        
        }        
        /* Dark Overlay */        
        .card::before{            
            content:"";            
            position:absolute;            
            inset:0;            
            background:linear-gradient(to top, rgba(0,0,0,.75), rgba(0,0,0,.25));            
            z-index: 0;            
            transition: all .6s ease;        
        }    

    

/* Card Title */
.card h3{
    margin-top:auto;
    margin-bottom:6px;
    color:#f5f5f5;
    position:relative;
    z-index:2;
}

/* Card Description */
.card p{
    margin:0;
    color:#cccccc;
    position:relative;
    z-index:2;
}


        /* Hover Effects */        
        .card:hover::after{            
            transform: scale(1.15);        
        }        
        .card:hover::before{            
            background: linear-gradient(to top, rgba(0,0,0,.88), rgba(0,0,0,.4));        
        }        
        .card:hover{            
            box-shadow: 0 15px 30px rgba(214, 0, 0, 0.3);        
        }        
        /* Card Background Images */        
        .c1::after { background-image:url("images/HABCO_SMALL_advert.png"); }        
        .c2::after { background-image:url("images/partners.png"); }        
        .c3::after { background-image:url("images/support.png"); }        
        .c4::after { background-image:url("images/CONCEPTs.png"); }        
        .card-link {            
            position: absolute;            
            inset: 0;            
            z-index: 2;            
            text-decoration: none;            
            color: inherit;            
            display: block;        
        }        
/* Power-on flicker: applies to .power elements AND .hero
   so <section class="hero hero-installer"> works even without an extra "power" class */
.power,
.hero{
    opacity:0;
    filter:brightness(0);
    animation:power .9s forwards;
    animation-play-state:paused;
}

@keyframes power{
    0%{opacity:0;filter:brightness(0)}
    10%{opacity:.4;filter:brightness(3)}
    20%{opacity:.1}
    35%{opacity:.8;filter:brightness(2)}
    50%{opacity:.3}
    70%{opacity:1;filter:brightness(1.5)}
    100%{opacity:1;filter:brightness(1)}
}

/* Animation delays (run after animationPlayState is set to "running") */
.logo{animation-delay:.15s}
.m2{animation-delay:.25s}
.m3{animation-delay:.6s}
.m4{animation-delay:.45s}
.m5{animation-delay:.20s}
.m6{animation-delay:.80s}
.hero{animation-delay:1.2s}
.panel{animation-delay:1.5s}
.c1{animation-delay:1.8s}
.c2{animation-delay:2s}
.c3{animation-delay:2.2s}
.c4{animation-delay:2.4s}

@media (max-width:768px){

    .hero{
        animation-delay:.2s;
    }

} 


/* ---------- Floating Side Widgets ---------- */

.side-widgets{
    position:fixed;
    top:110px;
    right:0;
    z-index:9999;
transition: opacity .35s ease, transform .35s ease;
}

.side-widgets.hide{
    opacity:0;
    transform:translateX(60px);
    pointer-events:none;
}

.side-widget{
    position:relative;

    width:235px;
    height:52px;

    margin-bottom:12px;

    display:flex;
    align-items:center;

   background: rgba(40,40,40,.60);
    backdrop-filter:blur(18px);
    -webkit-backdrop-filter:blur(18px);

    border:1px solid rgba(255,255,255,.08);
    border-right:none;

    border-radius:12px 0 0 12px;

    text-decoration:none;
    color:#fff;

    transform:translateX(50px);

    transition:.45s cubic-bezier(.22,1,.36,1);

    overflow:hidden;
}

.side-widget:hover{
    transform:translateX(0);
}

.ai-widget:hover{
background: rgba(20,20,20,.60);
}

.habco-widget:hover{
background: rgba(20,20,20,.60);
}

.side-widget img{
    width:26px;
    height:10px;

    margin:0 16px;

    flex-shrink:0;
}

.side-widget span{
    position:absolute;

    left:58px;

    font-size:10px;

    letter-spacing:1.8px;

    text-transform:uppercase;

    transition:.35s ease;

    white-space:nowrap;
}

.side-widget .short{
    opacity:1;
    transform:translateX(0);
}

.side-widget .long{
    opacity:0;
    transform:translateX(25px);
}

.side-widget:hover .short{
    opacity:0;
    transform:translateX(-15px);
}

.side-widget:hover .long{
    opacity:1;
    transform:translateX(0);
}

/* Hide mobile quick links on desktop */
.mobile-quick-links{
    display:none;
}

/* ================= MOBILE ================= */

@media (max-width:768px){

    /* Hide desktop side widgets */
    .side-widgets{
        display:none;
    }

    /* Show mobile quick links */
    .mobile-quick-links{
        display:flex;

        position:fixed;
        top:92px;
        right:14px;

        gap:10px;

        z-index:9998;
    }

    .quick-link{
        display:flex;
        align-items:center;

        padding:8px 12px;

        background:rgba(0,0,0,.65);

        backdrop-filter:blur(16px);

        border:1px solid rgba(255,255,255,.08);

        border-radius:30px;

        text-decoration:none;

        color:#fff;

        transition:.3s;
    }

    .quick-link:hover{
background: rgba(20,20,20,.60);
        transform:translateY(-2px);
    }

    .quick-link img{
        width:20px;
        height:20px;

        margin-right:8px;
    }

    .quick-link span{
        font-size:11px;

        letter-spacing:.8px;

        white-space:nowrap;
    }

}

@media (max-width:768px){

    .side-widgets{
        display:none;
    }

}


/* =================================
   DESKTOP HERO NAV SPACING
================================= */

@media (min-width:769px){

    main{
        margin-top:100px;
    }

}


/* =================================
   Landing Logo Transition
================================= */


/* =================================
   Landing Logo Transition
================================= */

#landingLogo{

    position:fixed;

    left:50%;
    top:50.5%;

    width:234px;

    transform:
        translate(-49%,-50%)
        scale(1);

    /* Hidden by default — JS shows it only when fromIndex is true.
       Prevents desktop flash of centre logo on normal page loads. */
    opacity:0;
    visibility:hidden;

    pointer-events:none;

    z-index:10000;

    transition:
        left 1.8s cubic-bezier(.16,1,.3,1),
        top 1.8s cubic-bezier(.16,1,.3,1),
        transform 1.8s cubic-bezier(.16,1,.3,1),
        opacity .5s ease;

}

/* Visible only for the full landing intro */
#landingLogo.from-index{
    opacity:1;
    visibility:visible;
}


/* ================================
   Logo Travels To Navbar Position
================================ */

#landingLogo.move{
    left:calc((100% - min(1200px,92%))/2 + 0px);
    top:63px;
    transform:translate(0,-50%) scale(.76);

}
/* =================================
   MOBILE Landing Logo Destination
================================= */

@media(max-width:768px){

    #landingLogo.move{

        left:50%;
        top:49px;

        transform:
            translate(-50%,-50%)
            scale(.42);

    }

}

/* =================================
   MOBILE Logo Landing Drop
================================= */

@media(max-width:768px){

    #landingLogo.settle{

        animation:mobileLogoSettle .35s ease-out forwards;

    }


    @keyframes mobileLogoSettle{

        0%{
            transform:
                translate(-50%,-50%)
                scale(.42)
                translateY(-12px);
        }

        60%{
            transform:
                translate(-50%,-50%)
                scale(.42)
                translateY(4px);
        }

        100%{
            transform:
                translate(-50%,-50%)
                scale(.42)
                translateY(0);
        }

    }

}


/* ================================
   Remove Landing Logo After Arrival
================================ */

#landingLogo.hide{

    animation:logoPowerOff .45s forwards;

}


@keyframes logoPowerOff{

    0%{
        opacity:1;
        filter:brightness(1);
    }

    20%{
        opacity:.4;
        filter:brightness(3);
    }

    40%{
        opacity:.8;
        filter:brightness(1);
    }

    60%{
        opacity:.2;
        filter:brightness(5);
    }

    100%{
        opacity:0;
        filter:brightness(0);
    }

}

@media(max-width:768px){

    #landingLogo{
        display:none;
    }

}


/* =================================
   MOBILE LANDING LOGO
================================= */

@media(max-width:768px){

.final-mobile-logo{

    position:fixed;

    width:113px;   /* START SIZE ONLY */

    left:51%;
    top:48.5%;

    transform:
        translate(-50%,-50%)
        scale(1);

    opacity:0.8;

    pointer-events:none;

    z-index:10000;

    transition:
        top 1.8s cubic-bezier(.16,1,.3,1),
        transform 1.8s cubic-bezier(.16,1,.3,1);

}


.final-mobile-logo.move{

    left:50%;
    top:49px;

    transform:
        translate(-50%,-50%)
        scale(.70);

}

/* =================================
   MOBILE FINAL LOGO POWER OFF
================================= */

.final-mobile-logo.hide{

    animation:mobileLogoPowerOff .45s forwards;

}


@keyframes mobileLogoPowerOff{

    0%{
        opacity:1;
        filter:brightness(1);
    }

    20%{
        opacity:.4;
        filter:brightness(4);
    }

    40%{
        opacity:.8;
        filter:brightness(1);
    }

    60%{
        opacity:.2;
        filter:brightness(5);
    }

    100%{
        opacity:0;
        filter:brightness(0);
    }


}
}


footer{
    margin-top:40px;
    padding:20px;

    text-align:center;
    color:#888;
    font-size:14px;
    letter-spacing:.5px;
}

footer a{
    color:#d60000;
    text-decoration:none;
    transition:color .3s ease;
}

footer a:hover{
    color:#ffffff;
}

/* =================================
   CONTENT LINKS
================================= */

.power1{
    color:#ffffff;
    text-decoration:none;
    transition:
        color .3s ease;
}

.power1:hover{
    color:#d60000;
}

.click-here{
    color:#d60000;
    font-size:.85em;
    margin-left:6px;
    opacity:.8;
    transition:color .3s ease, opacity .3s ease;
}

.power1:hover .click-here{
    color:#ffffff;
    opacity:1;
}



    .modal-backdrop {
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.55);
        backdrop-filter: blur(8px);
        z-index: 2000;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    }
    .modal-backdrop.active { opacity: 1; visibility: visible; }

    .modal {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) scale(0.95);
        width: 90vw;
        max-width: 500px;
        max-height: 900px;           /* Better fit */
        background: rgba(0,0,0,0.20);
        border: 1px solid rgba(255,255,255,0.12);
        box-shadow: 0 30px 80px rgba(0,0,0,0.9);
        overflow: hidden;
        opacity: 0;
        visibility: hidden;
        transition: all 0.55s cubic-bezier(0.23, 1, 0.32, 1);
        z-index: 2001;
        border-radius: 8px;         /* Slight round for modern look */
    }
    .modal.active {
        opacity: 1;
        visibility: visible;
        transform: translate(-50%, -50%) scale(1);
    }
    .modal-content {
        padding: 32px 28px 40px;
        max-height: 92vh;
        overflow-y: auto;
        scrollbar-width: none;      /* Hide scrollbar */
    }
    .modal-content::-webkit-scrollbar {
        display: none;
    }

    .modal-header { 
        display: flex; 
        justify-content: space-between; 
        align-items: center; 
        margin-bottom: 28px; 
    }
    .modal-logo { height: 50px; }
    .close-modal { 
        font-size: 2rem; 
        line-height: 1; 
        opacity: 0.7; 
        cursor: pointer; 
    }
    .close-modal:hover { opacity: 1; }

    .modal-product-image { 
        width: 100%; 
        max-height: 240px; 
        object-fit: contain; 
        margin-bottom: 32px; 
        filter: brightness(1.12); 
    }


.desktop-only{
    display:block;
}

.mobile-only{
    display:none;
margin-top:-20px;
}

    /* Responsive */
    @media (max-width: 768px) {
        body {
            background: linear-gradient(rgba(0,0,0,.08), rgba(0,0,0,.08)),
                        url("images/webMOBILE.webp") center/cover no-repeat fixed;
        }
        nav {
            top: 15px;
            height: 68px;
            padding: 0 20px;
            justify-content: space-between;
        }
        .logo { position: absolute; left: 50%; transform: translateX(-50%); }
        .logo img { height: 50px; }
        .menu { display: none; }
        .hamburger { display: block; }
.desktop-only{
    display:none;
}
        .mobile-only { display: block; }
        .floating-menu { display: block; }
        main { margin: 100px auto 80px; padding: 18px; }
    }

.quote-btn{
    opacity:1;
    transform:translateY(40px);

    transition:
        opacity 2s ease,
        transform 2.2s cubic-bezier(0.23, 1, 0.32, 1);

    will-change: transform, opacity;
}

.drawer.active .quote-btn{
    opacity:1;
    transform:translateY(0);
    transition-delay:0.9s;
}

.installer-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 30px;
}


.btn-outline{

    display:flex;

    justify-content:center;
    align-items:center;

    padding:14px 28px;

    border:1px solid rgba(255,255,255,.25);
    border-radius:8px;

    color:#fff;
    text-decoration:none;

    font-size:.95rem;
    letter-spacing:.5px;

    transition:.3s ease;
}

.btn-outline:hover {
    background: rgba(214,0,0,0.15);
    border-color: #d60000;
    color: #fff;
}

.installer-actions button {
    padding: 14px 28px;
    background: #a50000;
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.installer-actions button:hover {
    background: #d60000;
}

@media (max-width:768px){

    .installer-actions{
        display:flex;
        justify-content:center;
        align-items:center;
        gap:10px;
    }

    .installer-actions button,
    .installer-actions .btn-outline{
        margin:0 auto;
    }

}

/* Spec rows inside modal */
.spec-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    opacity: 0;
    transform: translateY(12px);
    transition: all 0.4s ease;
}

.spec-row.active {
    opacity: 1;
    transform: translateY(0);
}

.spec-icon img {
    width: 24px;
    height: 24px;
}

.spec-text {
    font-size: 14px;
    color: #ddd;
    transform:translateY(-4px);
}


.form-buttons{
    display:flex;
    gap:15px;
    margin-top:35px;
}

.form-buttons button{
    flex:1;
    height:50px;
    border:none;
    border-radius:40px;
    font-family:Montserrat,sans-serif;
    font-size:14px;
    letter-spacing:2px;
    cursor:pointer;
}

.cancel-btn{
    background:#444;
    color:#fff;
}

.cancel-btn:hover{
    background:#666;
}

.apply-btn{
    background:#d60000;
    color:#fff;
}

.apply-btn:hover{
    background:#fff;
    color:#d60000;
}


/* ===================================================
   CONTACT PAGE
=================================================== */

.contact-grid{
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 40px;
    margin-top: 45px;
}

.left-panel,
.right-panel{
    padding: 55px;
}

.left-panel h2,
.right-panel h2{
    font-size: 30px;
    font-weight: 500;
    margin-bottom: 28px;
}

.left-panel p{
    color: #cfcfcf;
    line-height: 1.9;
    margin-bottom: 40px;
}

/* CONTACT INFO */
.info-grid{
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-bottom: 45px;
}

.info-card{
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 18px 22px;
    background: rgba(255,255,255,.03);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 14px;
    transition: .35s;
}

.info-card:hover{
    border-color: rgba(214,0,0,.45);
    background: rgba(255,255,255,.05);
    transform: translateX(8px);
}

.info-card strong{
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
    letter-spacing: 1px;
}

.info-card div{
    color: #d7d7d7;
    line-height: 1.5;
}

.icon{
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: rgba(214,0,0,.12);
    border: 1px solid rgba(214,0,0,.35);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 22px;
    flex-shrink: 0;
}

/* HOURS */
.hours{
    border-top: 1px solid rgba(255,255,255,.08);
    padding-top: 30px;
}

.hours-row{
    display: flex;
    justify-content: space-between;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255,255,255,.06);
}

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

/* FORM */
form{
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-top: 35px;
}

input,
textarea{
    width: 100%;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 12px;
    color: #fff;
    padding: 18px 20px;
    font-family: Montserrat, sans-serif;
    font-size: 14px;
    transition: .35s;
}

textarea{
    resize: vertical;
    min-height: 180px;
}

input::placeholder,
textarea::placeholder{
    color: #888;
}

input:hover,
textarea:hover{
    border-color: rgba(255,255,255,.18);
}

input:focus,
textarea:focus{
    outline: none;
    border-color: #d60000;
    box-shadow: 0 0 20px rgba(214,0,0,.18);
}

/* BUTTON */
button{
    margin-top: 10px;
    height: 58px;
    border: none;
    border-radius: 12px;
    background: #d60000;
    color: #fff;
    font-family: Montserrat, sans-serif;
    font-size: 14px;
    letter-spacing: 2px;
    cursor: pointer;
    transition: .35s;
}

button:hover{
    background: #f00000;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(214,0,0,.35);
}

/* MOBILE */
@media (max-width: 900px){
    .contact-grid{
        grid-template-columns: 1fr;
    }
    .left-panel,
    .right-panel{
        padding: 35px;
    }
}

/* =========================== OPYNION AI CARDS =========================== */
.ai-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:24px;
    margin-top:35px;
}

.ai-card{
    background:rgba(255,255,255,.03);
    border:1px solid rgba(255,255,255,.08);
    border-radius:18px;
    padding:32px 26px;
    transition:.35s;
    text-align:left;
    min-height:250px;
    display:flex;
    flex-direction:column;
}

.ai-card:hover{
    transform:translateY(-8px);
    border-color:rgba(214,0,0,.35);
    box-shadow:0 18px 35px rgba(0,0,0,.28);
}

.ai-icon{
    width:54px;
    height:54px;
    margin-bottom:22px;
    object-fit:contain;
}

.ai-card h3{
    font-size:20px;
    font-weight:600;
    margin-bottom:14px;
    color:#fff;
}

.ai-card p{
    color:#cfcfcf;
    line-height:1.8;
    margin:0;
}

/* Tablet */
@media(max-width:1100px){
    .ai-grid{ grid-template-columns:repeat(2,1fr); }
}

/* Mobile */
@media(max-width:700px){
    .ai-grid{ grid-template-columns:1fr; }
    .ai-card{ min-height:auto; }
}

/* ================= CHAT WINDOW ================= */

.chat-window{
    width:100%;
    background:#202225;
    border:1px solid #2c2f34;
    border-radius:20px;
    overflow:hidden;
    box-shadow:0 20px 45px rgba(0,0,0,.45);
}

/* ================= HEADER ================= */

.chat-header{
    display:flex;
    align-items:center;
    gap:15px;
    padding:18px 24px;
    background:#26292d;
    border-bottom:1px solid #33373d;
}

.ai-avatar{
    width:46px;
    height:46px;
    border-radius:50%;
    background:#d60000;
    color:#fff;
    display:flex;
    align-items:center;
    justify-content:center;
    font-weight:700;
    font-size:18px;
}

.chat-title strong{
    font-size:17px;
    color:#fff;
}

.online-text{
    font-size:13px;
    color:#b8b8b8;
}

.status-dot{
    display:inline-block;
    width:8px;
    height:8px;
    border-radius:50%;
    background:#27d05f;
    margin-right:6px;
}

/* ================= CHAT BODY ================= */

.chat-body{

    background:#1b1d21;

    padding:24px;

    height:520px;

    overflow-y:auto;

    display:flex;

    flex-direction:column;

    gap:16px;

}

/* ================= AI MESSAGE ================= */

.ai-message{

    max-width:78%;

    background:#3b4046;

    color:#ffffff;

    border:none;

    border-radius:18px 18px 18px 6px;

    padding:16px 20px;

    align-self:flex-start;

    box-shadow:0 8px 20px rgba(0,0,0,.30);

}

.ai-message strong{

    color:#ffffff;

    display:block;

    margin-bottom:8px;

    font-size:14px;

}

.ai-message p{

    margin:0;

    color:#f3f3f3;

    line-height:1.7;

    font-size:15px;

}

/* ================= USER MESSAGE ================= */

.user-message{

    max-width:78%;

    background:#ffffff;

    color:#000000;

    border:1px solid #ddd;

    border-radius:18px 18px 6px 18px;

    padding:16px 20px;

    align-self:flex-end;

    box-shadow:none;

}

.user-message strong{

    color:#000000;

}

.user-message p{

    color:#000000;

}

/* ================= INPUT ================= */

.chat-input{

    display:flex;

    gap:12px;

    padding:18px;

    background:#26292d;

    border-top:1px solid #33373d;

}

.chat-input input{

    flex:1;

    background:#1b1d21;

    color:#ffffff;

    border:1px solid #3b4046;

    border-radius:40px;

    padding:15px 22px;

    font-size:15px;

    font-family:Montserrat,sans-serif;

    outline:none;

    transition:.25s;

}

.chat-input input::placeholder{

    color:#8d8d8d;

}

.chat-input input:focus{

    border-color:#d60000;

    box-shadow:0 0 0 3px rgba(214,0,0,.12);

}

/* ================= SEND BUTTON ================= */

.send-btn{

    width:52px;

    height:52px;

    border:none;

    border-radius:50%;

    background:#d60000;

    color:#ffffff;

    font-size:22px;

    cursor:pointer;

    transition:.25s;

}

.send-btn:hover{

    background:#b50000;

    transform:scale(1.05);

}

/* ================= FOOTER ================= */

.chat-note{

    padding:16px;

    text-align:center;

    font-size:13px;

    color:#9a9a9a;

    background:#26292d;

    border-top:1px solid #33373d;

}

/* ================= MOBILE ================= */

@media(max-width:768px){

    .chat-body{
        height:420px;
        padding:18px;
    }

    .ai-message,
    .user-message{
        max-width:92%;
    }

    .chat-input{
        padding:14px;
    }

    .send-btn{
        width:48px;
        height:48px;
    }

}

.send-btn{

    width:52px;

    height:52px;

    border:none;

    border-radius:50%;

    background:#d60000;

    color:#fff;

    font-size:22px;

    cursor:pointer;

    transition:.25s;

}

.send-btn:hover{

    transform:scale(1.05);

    background:#b50000;

}

/* Footer */

.chat-note{

    padding:16px;

    text-align:center;

    font-size:13px;

    color:#888;

    background:#fff;

    border-top:1px solid #eee;

}

/* =================================
   SELECT DROPDOWNS
================================= */

select{

    width:100%;

    height:58px;

    padding:0 18px;

    background:rgba(255,255,255,.04);

    border:1px solid rgba(255,255,255,.08);

    border-radius:12px;

    color:#ffffff;

    font-family:"Plain",sans-serif;

    font-size:14px;

    transition:.35s ease;

    cursor:pointer;

    appearance:none;
    -webkit-appearance:none;
    -moz-appearance:none;

}

select:hover{

    border-color:rgba(255,255,255,.20);

}

option{

    background:#1a1a1a;

    color:#ffffff;

}

.form-group{

    position:relative;

}

/* ==================================================
   HABCO PRODUCTS / GEYSERS
================================================== */

/* Desktop geyser containers */
.geyser-container {
    position: absolute;
    transition: transform 1.2s cubic-bezier(0.23, 1, 0.32, 1);
    z-index: 10;
    cursor: pointer;
}

.geyser-container.active {
    z-index: 5000;
}

.geyser {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 1.2s cubic-bezier(0.23, 1, 0.32, 1);
}

.geyser-container.active .geyser {
    transform: scale(1.13);
}

/* Drawers */
.drawer {
    position: absolute;
    background: rgba(0,0,0,0.78);
    border: 1px solid rgba(255,255,255,0.12);
    padding: 24px 32px;
    width: 400px;
    height: 86vh;
    max-height:700px;
    box-shadow: 0 30px 70px rgba(0,0,0,.9);
    opacity: 0;
    visibility: hidden;
    overflow: visible;
    z-index: 5000;
    transform-origin: left center;
    transform: translateY(-50%) scaleX(0) scaleY(0);
    transition: transform .75s cubic-bezier(.22,1,.36,1), opacity .2s linear;
}

.drawer.left {
    left: 100%;
    top: 28%;
    margin-left: 25px;
}

.drawer.right {
    right: 100%;
    top: 28%;
    margin-right: 25px;
    transform-origin: right center;
}

.drawer.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) scaleX(1.04) scaleY(1.04);
}

.drawer.active.finished {
    transform: translateY(-50%) scaleX(1) scaleY(1);
}

.drawer img {
    height: 38px;
    margin-bottom: 12px;
}

.model-title {
    font-size:20px;
    font-weight: 700;
    line-height: 1.05;
line-height:1.1;
}

.model-subtitle {
    color: #d60000;
    font-size: font-size:12px;
    letter-spacing: 2px;
    margin: 0px 0 10px;
}

/* Spec rows (product version) */
.drawer .spec-row{
    display:flex;
    align-items:center;
    gap:14px;

    min-height:48px;
    padding:10px 0;

    border-bottom:1px solid rgba(255,255,255,.10);

    opacity:0;
    filter:brightness(0);
}

.drawer .spec-row.active{
    animation:power 1.4s forwards;
}

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

.drawer .spec-icon{
    width:40px;
    height:40px;

    display:flex;
    justify-content:center;
    align-items:center;

    flex-shrink:0;
}

.drawer .spec-icon img{
    width:24px;
    height:24px;
    display:block;
    object-fit:contain;
}

.drawer .spec-text{
    display:flex;
    align-items:center;
    flex:1;

    font-size:14px;
    line-height:1.2;

    white-space:nowrap;
    transform:translateY(-4px);
}

.drawer-header{
    display:flex;
    align-items:center;
    gap:16px;
    margin-bottom:16px;
}

.drawer-header img{
    height:42px;
    width:auto;
    margin:0;
    flex-shrink:0;
}

.drawer-heading{
    display:flex;
    flex-direction:column;
    justify-content:center;
}

.model-title{
    margin:0;
    line-height:1.1;
}

.model-subtitle{
    margin-top:2px;
}

/* Quote button inside drawers / modals */
.quote-btn {
    width: 100%;
    margin-top: 0px;          /* Was 28px */
    padding: 9px 50px;        /* Was 16px */
    background: #d60000;
    color: #fff;
    border: none;
    border-radius: 30px;       /* Was 40px */
    font-family: "Plain", sans-serif;
    font-size: 13px;           /* Was 14px */
    letter-spacing: 1.5px;     /* Was 2px */
    cursor: pointer;
    opacity: 0;
    transform: translateY(35px);
    transition:
        opacity 1.3s cubic-bezier(0.22, 1, 0.36, 1),
        transform 1.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.drawer.active .quote-btn,
.modal.active .quote-btn {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.85s;
}

.quote-btn:hover {
    background: #ffffff;
    color: #d60000;
    transition: background-color 0.08s linear, color 0.08s linear !important;
}

/* Geyser labels under the units */
.geyser-label {
    text-align: center;
    margin-top: 15px;
    line-height: 1.25;
}

.geyser-size {
    display: block;
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 1px;
}

.geyser-type {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    font-weight: 500;
    color: #d60000;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Mobile product sections */
.product-section {
    min-height: auto;
    padding: 10px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(40px);
    transition: all 1.1s cubic-bezier(0.23, 1, 0.32, 1);
}

.product-section.visible {
    opacity: 1;
    transform: translateY(0);
}

.product-image {
    width: 82%;
    max-width: 280px;
    margin-bottom: 48px;
    filter: brightness(1.08);
}

.view-specs {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.25);
    color: white;
    padding: 14px 42px;
    border-radius: 60px;
    font-size: 0.95rem;
    letter-spacing: 1.5px;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    cursor: pointer;
}

.view-specs:hover {
    background: rgba(255,255,255,0.12);
    border-color: #d60000;
    color: #d60000;
}

.products{
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    height: 20px;   /* adjust until the layout matches */
}

/* =================================
   OPYNIA PROMO
================================= */

.opynia-banner{

    margin-top:40px;

    border-radius:18px;

    overflow:hidden;

    background:rgba(255,255,255,.03);

    border:1px solid rgba(255,255,255,.08);

}

.opynia-banner-image{

    height:180px;

    background:url("images/opyniaSA_main.webp") center center/cover no-repeat;

}

.opynia-banner-content{

    padding:28px;

}

.opynia-banner h3{

    margin:10px 0 12px;

    font-size:28px;

}

.opynia-banner p{

    margin-bottom:24px;

}

.opynia-banner .btn-outline{

    display:inline-flex;

    padding:14px 34px;

    border:1px solid #ffffff;

    border-radius:40px;

    color:#fff;

    text-decoration:none;

    transition:.3s ease;

}

.opynia-banner .btn-outline:hover{

    background:#d60000;

    border-color:#d60000;

    color:#fff;

}

/* OpynIA links */

.chat-body a,
.ai-message a,
.ai-message p a{
    color:#27B0F5 !important;
    text-decoration:none !important;
    transition:color .25s ease;
}

.chat-body a:hover,
.ai-message a:hover,
.ai-message p a:hover{
    color:#B3E6FF !important;
}

.chat-body a:visited,
.ai-message a:visited{
    color:#27B0F5 !important;
}

.chat-body a:active{
    color:#B3E6FF !important;
}

.popup{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.75);
    display:none;
    justify-content:center;
    align-items:center;
    z-index:9999;
}

.popup-box{
    width:90%;
    max-width:420px;
    background:#111;
    border:1px solid #444;
    border-radius:12px;
    padding:30px;
    text-align:center;
    color:#fff;
    box-shadow:0 0 30px rgba(0,0,0,.6);
}

.popup-box h2{
    margin-bottom:15px;
    font-size:28px;
}

.popup-box p{
    color:#ccc;
    margin-bottom:25px;
}

.popup-box button{
    background:#fff;
    color:#000;
    border:none;
    padding:12px 30px;
    border-radius:8px;
    cursor:pointer;
    font-weight:bold;
    transition:.3s;
}

.popup-box button:hover{
    background:#ddd;
}

/* Contact card links */
.info-card a{
    color:#2784F5;
    text-decoration:none;
    transition:color .25s ease;
}

.info-card a:visited{
    color:#27B0F5;
}

.info-card a:hover{
    color:#B3E6FF;
}

.info-card a:focus{
    color:#B3E6FF;
}

.info-card a:active{
    color:#B3E6FF;
}

/* Desktop */
#contactForm {
    scroll-margin-top: 0;
}

/* Mobile */
@media (max-width: 768px) {
    #contactForm {
        scroll-margin-top: 20px;
    }
    
    
    .check{
    display:flex;
    align-items:flex-start;
    gap:12px;
    margin:12px 0;
    cursor:pointer;
    line-height:1.4;
}
}
.check input[type="checkbox"]{
    margin-top:3px;
    width:18px;
    height:18px;
    flex:0 0 18px;
}


/* Floating Button */

.opynia-float {
    position: fixed;
    left: 25px;
    bottom: 25px;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    border: none;
    background: #111;
    cursor: pointer;
    z-index: 99998;
}

.opynia-float img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}


/* ==========================================================
   OpynIA Standalone Page (opynia.html)
========================================================== */

html{

    margin:0;
    padding:0;

    width:100%;
    height:100%;

    overflow-y:scroll;
    overflow-x:hidden;

    scrollbar-width:none;
    -ms-overflow-style:none;

}

html::-webkit-scrollbar{

    display:none;
    width:0;
    height:0;

}

body.opynia-page{

    margin:0;
    padding:0;

    width:100%;
    min-height:100vh;

    overflow:visible;

    background:transparent;

}


/* ==========================================================
   Modal Background
========================================================== */

.opynia-modal{

    display:none;

    position:fixed;

    inset:0;



    overflow:hidden;

    z-index:999999;

}


/* Show Modal */

.opynia-modal.show{

    display:block;

    animation:opyniaFade .25s ease;

}


/* ==========================================================
   Modal Window
========================================================== */

.opynia-modal-content{

    position:absolute;

    left:25px;

    bottom:2px;      /* Adjust this value to move the chat up/down */

    width:380px;

    height:600px;

    display:flex;

    flex-direction:column;

    background:rgba(255,255,255,.05);

    border-radius:20px;

    overflow:hidden;

    box-shadow:
        0 20px 60px rgba(0,0,0,.45);


    animation:opyniaBoot .9s ease-out forwards;



}


/* ==========================================================
   Iframe
========================================================== */

.opynia-modal iframe{

    width:100%;

    height:100%;

    border:none;

    display:block;

    overflow:hidden;

}


/* ==========================================================
   Close Button
========================================================== */

.opynia-close{

    position:absolute;

    top:12px;

    right:12px;

    width:34px;

    height:34px;

    border:none;

    border-radius:50%;

    background:rgba(0,0,0,.85);

    color:#fff;

    font-size:18px;

    cursor:pointer;

    z-index:100;

    transition:.2s;

}

.opynia-close:hover{

    background:#c60000;

}


/* ==========================================================
   Animations
========================================================== */

@keyframes opyniaFade{

    from{

        opacity:0;

    }

    to{

        opacity:1;

    }

}

@keyframes opyniaBoot{

    0%{

        opacity:0;

        transform:
            translateY(280px)
            scaleX(.03)
            scaleY(.03);

        filter:brightness(4);

    }

    8%{

        opacity:1;

    }

    /* Grow vertically first */

    25%{

        transform:
            translateY(140px)
            scaleX(.03)
            scaleY(.95);

    }

    /* Then grow horizontally */

    55%{

        transform:
            translateY(0)
            scaleX(1)
            scaleY(.95);

    }

    /* Small overshoot */

    70%{

        transform:
            scale(1.03);

    }

    82%{

        transform:
            scale(.985);

    }

    100%{

        transform:
            scale(1);

        filter:none;

        opacity:1;

    }

}

/* Reverse (minimise / close) animation */
.opynia-modal-content.shutdown {
    animation: opyniaBoot .9s ease-in reverse forwards;
}
/* ==========================================================
   Mobile
========================================================== */

@media (max-width:768px){

    .opynia-modal-content{

        left:10px;

        right:10px;

        top:20px;

        bottom:20px;

        width:auto;

        height:auto;

        border-radius:18px;

    }

}




/* -------------------------
   Minimise Button
------------------------- */

.opynia-minimise{

    position:absolute;

    top:12px;
    right:55px;

    width:34px;
    height:34px;

    border:none;
    border-radius:50%;

    background:rgba(0,0,0,.85);

    color:#fff;

    font-size:22px;

    cursor:pointer;

    z-index:100;

    transition:.2s;

}

.opynia-minimise:hover{

    background:#666;

}


/* -------------------------
   Restore Bubble
------------------------- */

.opynia-restore{

    position:fixed;

    left:20px;
    bottom:20px;

    width:65px;
    height:65px;

    display:flex;
    align-items:center;
    justify-content:center;

    background:#111;
    border-radius:50%;

    cursor:pointer;

    overflow:visible;

    box-shadow:0 10px 25px rgba(0,0,0,.35);

    z-index:999999;

    /* Hidden */
    transform:translateY(120px);
    opacity:0;
    visibility:hidden;
    pointer-events:none;

    transition:
        transform .45s ease,
        opacity .45s ease,
        visibility 0s linear .45s;
}

.opynia-restore.show{

    transform:translateY(0);

    opacity:1;
    visibility:visible;
    pointer-events:auto;

    transition:
        transform .45s ease,
        opacity .45s ease,
        visibility 0s;
}

.opynia-restore img{

    width:100%;
    height:100%;

    object-fit:contain;

    display:block;
}

.opynia-restore span{

    display:none;

}

/* -------------------------
   Close Button
------------------------- */

.opynia-restore-close{

    appearance:none;
    -webkit-appearance:none;
    -moz-appearance:none;

    position:absolute;

    top:-6px;
    right:-6px;

    width:20px;
    height:20px;

    margin:0;
    padding:0;

    display:flex;
    align-items:center;
    justify-content:center;

    border:none;
    outline:none;

    border-radius:50%;

    background:#111;
    color:#fff;

    font-size:11px;
    font-family:Arial, Helvetica, sans-serif;
    line-height:1;

    cursor:pointer;

    z-index:100000;

    box-shadow:0 2px 8px rgba(0,0,0,.35);

    transition:.2s;
}

.opynia-restore-close:hover{

    background:#444;

}


/* -------------------------
   Misc
------------------------- */

.opynia-red{
    color:#ff2b2b;
}

.aiICONavi img{
    width:50px;
}

.floating-help{

    position:absolute;

    right:70px;
    top:50%;

    transform:translateY(-50%);

    display:flex;
    align-items:center;
    gap:5px;

    pointer-events:none;
    user-select:none;

}

.floating-help span{

    font-family:Arial, Helvetica, sans-serif;
    font-size:10px;
    font-weight:300;
    letter-spacing:1.5px;
    text-transform:uppercase;

    color:rgba(255,255,255,.85);

    text-shadow:
        0 0 2px rgba(0,0,0,.45),
        0 0 6px rgba(0,0,0,.2);

    white-space:nowrap;

}

.help-arrow{

    width:28px;
    height:1px;

    background:rgba(255,255,255,.75);

}
.concept-feature{
    display:flex;
    justify-content:center;
    align-items:flex-start;
    gap:30px;
    margin:50px auto;
    flex-wrap:wrap;
}

.concept-card{
    flex:1 1 480px;
    max-width:480px;
    text-align:center;
}

.concept-image{
    width:100%;
    height:320px;          /* Same height for both */
    object-fit:cover;      /* Crop slightly to fill */
    border-radius:18px;
    box-shadow:0 15px 35px rgba(0,0,0,.35);
    transition:.3s;
}

.concept-image:hover{
    transform:translateY(-4px);
}








.chat-info {
    flex: 1;
}


.chat-title strong {
    font-size: 22px;
    letter-spacing: 1px;
}


.status-dot {
    display: inline-block;
    width: 9px;
    height: 9px;
    background: #00ff66;
    border-radius: 50%;
    margin-right: 5px;
}


.online-text {
    font-size: 12px;
    color: #aaa;
}


.ai-disclaimer {
    max-width: 500px;
}


/* =========================================================
   CHAT BODY
   ========================================================= */

.chat-body {
    height: 500px;
    overflow-y: auto;
    padding: 20px;
    background:
        radial-gradient(
            circle at top,
            rgba(255,255,255,0.05),
            transparent 40%
        ),
        #050505;
}


/* Scrollbar */

.chat-body::-webkit-scrollbar {
    width: 6px;
}

.chat-body::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 10px;
}


/* =========================================================
   MESSAGE BUBBLES
   ========================================================= */

.ai-message,
.user-message {

    max-width: 90%;
    padding: 14px 16px;
    margin-bottom: 15px;
    border-radius: 14px;
    line-height: 1.5;
    font-size: 14px;

}


/* ================= AI MESSAGE ================= */

.ai-message {

    background: #151515;
    border: 1px solid #333;
    color: #ffffff;
    margin-right: auto;

}


/* ================= USER MESSAGE ================= */

.user-message {

    max-width: 78%;

    background: #ffffff;

    color: #000000;

    border: 1px solid #ddd;

    border-radius: 18px 18px 6px 18px;

    padding: 16px 20px;

    margin-left: auto;

    box-shadow: none;

}


.user-message strong {

    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    color: #000000;

}


.user-message p {

    margin: 0;
    color: #000000;

}


/* AI Text */

.ai-message strong {

    display:block;
    margin-bottom:8px;
    font-size:13px;
    color:#ffffff;

}


.ai-message p {

    margin:0;
    color:#ffffff;

}


/* =========================================================
   MARKDOWN ELEMENTS
   ========================================================= */


.ai-message h1,
.ai-message h2,
.ai-message h3 {

    margin: 12px 0 8px;

}


.ai-message hr {

    border:0;
    border-top:1px solid #444;
    margin:15px 0;

}


.ai-message code {

    background:#222;
    padding:3px 6px;
    border-radius:5px;
    font-size:12px;

}


.ai-message blockquote {

    border-left:3px solid #888;
    padding-left:12px;
    color:#ccc;

}


/* =========================================================
   TABLES GENERATED BY OPYNIA
   ========================================================= */

.ai-message table {

    width:100%;
    border-collapse:collapse;
    margin:15px 0;
    font-size:13px;

}


.ai-message th {

    background:#222;
    font-weight:bold;

}


.ai-message th,
.ai-message td {

    border:1px solid #444;
    padding:8px;
    text-align:left;
    vertical-align:top;

}


/* =========================================================
   LINKS
   ========================================================= */

.ai-message a {

    color:#7cc7ff;
    text-decoration:none;

}


.ai-message a:hover {

    text-decoration:underline;

}


/* =========================================================
   INPUT AREA
   ========================================================= */

.chat-input {

    display:flex;
    gap:10px;
    padding:15px;
    background:#0c0c0c;
    border-top:1px solid #333;

}


.chat-input input {

    flex:1;
    background:#111;
    color:white;
    border:1px solid #444;
    border-radius:25px;
    padding:12px 18px;
    outline:none;

}


.chat-input input:focus {

    border-color:#777;

}


/* =========================================================
   SEND BUTTON
   ========================================================= */

.send-btn {

    width:45px;
    height:45px;
    border-radius:50%;
    border:none;
    background:white;
    color:black;
    cursor:pointer;
    font-size:20px;

}


.send-btn:disabled {

    opacity:.4;
    cursor:not-allowed;

}


/* =========================================================
   MOBILE
   ========================================================= */

@media(max-width:600px){

    .chat-window {

        width:100%;
        margin:0;
        border-radius:0;

    }


    .chat-body {

        height:calc(100vh - 220px);

    }


    .ai-message,
    .user-message {

        max-width:95%;
        font-size:13px;

    }


    .chat-header {

        padding:12px;

    }


    .aiICONavi img {

        width:45px;
        height:45px;

    }

}






/* ================================================================
   OPYNIA V2 – FUTURISTIC REDESIGN (overrides all previous chat styles)
   Matches the premium HUD concept: near-black, electric blue, red accents
   ================================================================ */

:root {
    --opynia-bg: #050508;
    --opynia-panel: #0c0c12;
    --opynia-elevated: #12121a;
    --opynia-blue: #00b4ff;
    --opynia-blue-dim: rgba(0, 180, 255, 0.18);
    --opynia-blue-glow: rgba(0, 180, 255, 0.35);
    --opynia-red: #ff2a2a;
    --opynia-red-dim: #cc1f1f;
    --opynia-red-glow: rgba(255, 42, 42, 0.4);
    --opynia-text: #e8eef5;
    --opynia-text-sec: #8a9bb0;
    --opynia-text-muted: #5a6a7a;
}

/* ---------- Page shell ---------- */
body.opynia-page {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100vh;
    background: #050508 !important;
    background-image: none !important;
    color: var(--opynia-text);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
}

/* ---------- Main terminal window ---------- */
.chat-window {
    width: 100%;
    max-width: 420px;
    height: 100vh;
    max-height: 780px;
    margin: 0 auto;
    background:
        radial-gradient(ellipse 80% 50% at 50% 0%, rgba(0, 80, 140, 0.12) 0%, transparent 60%),
        linear-gradient(180deg, #08080e 0%, #050508 100%) !important;
    border: 1px solid rgba(0, 180, 255, 0.12) !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, 0.5),
        0 20px 60px rgba(0, 0, 0, 0.6),
        0 0 40px rgba(0, 100, 180, 0.08) !important;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Subtle grid */
.chat-window::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 180, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 180, 255, 0.03) 1px, transparent 1px);
    background-size: 28px 28px;
    pointer-events: none;
    z-index: 0;
    mask-image: linear-gradient(to bottom, black 0%, transparent 85%);
    -webkit-mask-image: linear-gradient(to bottom, black 0%, transparent 85%);
}

/* ---------- Header ---------- */
.chat-header {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px 12px !important;
    background: linear-gradient(180deg, rgba(12, 12, 18, 0.95) 0%, rgba(8, 8, 14, 0.9) 100%) !important;
    border-bottom: 1px solid rgba(0, 180, 255, 0.12) !important;
    backdrop-filter: blur(12px);
}

.aiICONavi {
    flex-shrink: 0;
}

.aiICONavi img {
    width: 42px !important;
    height: 42px !important;
    border-radius: 10px;
    border: 1px solid rgba(0, 180, 255, 0.25);
    background: linear-gradient(135deg, rgba(0, 180, 255, 0.12), rgba(0, 60, 100, 0.08));
    padding: 4px;
    object-fit: contain;
}

.chat-info {
    flex: 1;
    min-width: 0;
}

.chat-title {
    line-height: 1.3;
}

.chat-title strong {
    font-size: 17px !important;
    font-weight: 600;
    letter-spacing: 0.3px;
    color: var(--opynia-text) !important;
}

.chat-title .ia-accent {
    color: var(--opynia-red);
    text-shadow: 0 0 10px var(--opynia-red-glow);
}

.beta-tag {
    font-size: 10px;
    color: var(--opynia-text-muted);
    font-weight: 400;
    margin-left: 4px;
    letter-spacing: 0.3px;
}

.status-dot {
    display: inline-block;
    width: 7px !important;
    height: 7px !important;
    border-radius: 50%;
    background: #00e676 !important;
    box-shadow: 0 0 6px rgba(0, 230, 118, 0.7);
    margin-right: 5px;
    animation: opynia-pulse 2s ease-in-out infinite;
}

@keyframes opynia-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(0.85); }
}

.online-text {
    font-size: 11px !important;
    color: var(--opynia-blue) !important;
    letter-spacing: 0.4px;
}

.ai-disclaimer {
    font-size: 10px !important;
    color: #DEDEDE;
    margin-top: 6px !important;
    line-height: 1.45 !important;
    max-width: 100% !important;
}

/* ---------- Messages area ---------- */
.chat-body {
    flex: 1;
    height: auto !important;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 16px 14px 12px !important;
    display: flex;
    flex-direction: column;
    gap: 14px;
    position: relative;
    z-index: 5;
    background: transparent !important;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 180, 255, 0.2) transparent;
}

.chat-body::-webkit-scrollbar {
    width: 4px;
}
.chat-body::-webkit-scrollbar-track {
    background: transparent;
}
.chat-body::-webkit-scrollbar-thumb {
    background: rgba(0, 180, 255, 0.2);
    border-radius: 4px;
}

/* ---------- AI messages ---------- */
.ai-message {
    max-width: 88% !important;
    align-self: flex-start;
    background: linear-gradient(145deg, rgba(0, 60, 100, 0.25), rgba(0, 30, 60, 0.2)) !important;
    border: 1px solid rgba(0, 180, 255, 0.18) !important;
    border-radius: 10px !important;
    border-top-left-radius: 3px !important;
    padding: 12px 14px !important;
    color: var(--opynia-text) !important;
    box-shadow:
        0 0 0 1px rgba(0, 180, 255, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.03) !important;
    position: relative;
    margin-bottom: 0 !important;
    margin-right: auto;
}

.ai-message::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, var(--opynia-blue), transparent);
    border-radius: 2px 0 0 2px;
    opacity: 0.6;
}

.ai-message strong {
    display: block;
    margin-bottom: 6px !important;
    font-size: 11px !important;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--opynia-blue) !important;
}

.ai-message p {
    margin: 0 !important;
    color: var(--opynia-text) !important;
    line-height: 1.5 !important;
    font-size: 14px !important;
}

/* ---------- User messages ---------- */
.user-message {
    max-width: 82% !important;
    align-self: flex-end;
    background: linear-gradient(145deg, rgba(80, 20, 20, 0.35), rgba(40, 10, 10, 0.3)) !important;
    border: 1px solid rgba(255, 42, 42, 0.22) !important;
    border-radius: 10px !important;
    border-top-right-radius: 3px !important;
    padding: 12px 14px !important;
    color: var(--opynia-text) !important;
    box-shadow:
        0 0 0 1px rgba(255, 42, 42, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.03) !important;
    position: relative;
    margin-bottom: 0 !important;
    margin-left: auto;
}

.user-message::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, var(--opynia-red), transparent);
    border-radius: 0 2px 2px 0;
    opacity: 0.7;
}

.user-message strong {
    display: block;
    margin-bottom: 6px !important;
    font-size: 11px !important;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--opynia-red) !important;
}

.user-message p {
    margin: 0 !important;
    color: var(--opynia-text) !important;
    line-height: 1.5 !important;
    font-size: 14px !important;
}

/* ---------- Markdown / tables inside AI messages ---------- */
.ai-message a {
    color: #5cc8ff !important;
    text-decoration: none !important;
}
.ai-message a:hover {
    color: #a8e4ff !important;
    text-decoration: underline !important;
}
.ai-message table {
    width: 100%;
    border-collapse: collapse;
    margin: 12px 0;
    font-size: 12.5px;
}
.ai-message th {
    background: rgba(0, 180, 255, 0.1);
    font-weight: 600;
    color: var(--opynia-blue);
}
.ai-message th,
.ai-message td {
    border: 1px solid rgba(0, 180, 255, 0.15);
    padding: 7px 9px;
    text-align: left;
}
.ai-message code {
    background: rgba(0, 40, 70, 0.5);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
}
.ai-message hr {
    border: 0;
    border-top: 1px solid rgba(0, 180, 255, 0.15);
    margin: 12px 0;
}
.ai-message blockquote {
    border-left: 3px solid var(--opynia-blue);
    padding-left: 12px;
    color: var(--opynia-text-sec);
    margin: 8px 0;
}

/* ---------- Input area ---------- */
.chat-input {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px 14px !important;
    background: linear-gradient(0deg, rgba(8, 8, 14, 0.98) 0%, rgba(10, 10, 16, 0.92) 100%) !important;
    border-top: 1px solid rgba(0, 180, 255, 0.1) !important;
}

.chat-input::before {
    content: '';
    position: absolute;
    top: 0;
    left: 12%;
    right: 12%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 180, 255, 0.25), transparent);
}

.chat-input input,
#chatInput {
    flex: 1;
    background: rgba(0, 20, 40, 0.4) !important;
    color: var(--opynia-text) !important;
    border: 1px solid rgba(0, 180, 255, 0.2) !important;
    border-radius: 12px !important;
    padding: 12px 16px !important;
    font-size: 14.5px !important;
    font-family: inherit !important;
    outline: none !important;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
    min-width: 0;
}

.chat-input input::placeholder,
#chatInput::placeholder {
    color: var(--opynia-text-muted) !important;
}

.chat-input input:focus,
#chatInput:focus {
    border-color: rgba(0, 180, 255, 0.45) !important;
    box-shadow:
        0 0 0 1px rgba(0, 180, 255, 0.1),
        0 0 18px rgba(0, 180, 255, 0.12) !important;
}

/* ---------- Send button (red, no paperclip) ---------- */
.send-btn,
#sendBtn {
    width: 44px !important;
    height: 44px !important;
    flex-shrink: 0;
    border-radius: 11px !important;
    border: none !important;
    background: linear-gradient(145deg, var(--opynia-red), var(--opynia-red-dim)) !important;
    color: transparent !important;          /* hide any text JS may inject */
    font-size: 0 !important;
    line-height: 0 !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    box-shadow:
        0 0 12px var(--opynia-red-glow),
        inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
    transition: transform 0.15s ease, box-shadow 0.2s ease;
    overflow: hidden;
}

/* Pure CSS paper-plane icon – cannot be removed by JS */
.send-btn::after,
#sendBtn::after {
    content: "";
    position: absolute;
    inset: 0;
    margin: auto;
    width: 18px;
    height: 18px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 2L11 13'/%3E%3Cpath d='M22 2l-7 20-4-9-9-4 20-7z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 18px 18px;
    pointer-events: none;
}

.send-btn:hover,
#sendBtn:hover {
    transform: scale(1.05);
    box-shadow:
        0 0 18px var(--opynia-red-glow),
        inset 0 1px 0 rgba(255, 255, 255, 0.25) !important;
}

.send-btn:active,
#sendBtn:active {
    transform: scale(0.96);
}

.send-btn:disabled,
#sendBtn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
}

/* Hide any leftover SVG or text that JS may inject */
.send-btn svg,
#sendBtn svg,
.send-btn > *,
#sendBtn > * {
    display: none !important;
}

/* ---------- Footer note ---------- */
.chat-footer-note {
    text-align: center;
    font-size: 10px;
    color: var(--opynia-text-muted);
    padding: 6px 12px 10px;
    margin: 0;
    background: transparent;
    border-top: none;
    letter-spacing: 0.3px;
}

/* ---------- Mobile ---------- */
@media (max-width: 520px) {
    body.opynia-page {
        align-items: stretch;
        justify-content: stretch;
    }

    .chat-window {
        max-width: 100%;
        height: 100vh;
        max-height: 100vh;
        border-radius: 0 !important;
        border-left: none !important;
        border-right: none !important;
    }

    .chat-header {
        padding: 12px 12px 10px !important;
    }

    .aiICONavi img {
        width: 38px !important;
        height: 38px !important;
    }

    .chat-body {
        padding: 12px 10px 10px !important;
    }

    .ai-message,
    .user-message {
        max-width: 92% !important;
        font-size: 13.5px;
    }

    .chat-input {
        padding: 10px 10px 12px !important;
    }

    .send-btn,
    #sendBtn {
        width: 42px !important;
        height: 42px !important;
    }
}

/* Desktop refinement when used standalone */
@media (min-width: 521px) {
    body.opynia-page {
        padding: 20px;
        background: #020204 !important;
    }
}

/* Phase 5 — sizing choice chips (additive only; HUD theme) */
.opynia-sizing-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 10px 0 0;
    position: relative;
    z-index: 6;
}
.opynia-sizing-chip {
    appearance: none;
    -webkit-appearance: none;
    border: 1px solid rgba(0, 180, 255, 0.35);
    background: linear-gradient(145deg, rgba(0, 60, 100, 0.35), rgba(0, 30, 60, 0.28));
    color: var(--opynia-text, #e8eef5);
    border-radius: 999px;
    padding: 8px 14px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.02em;
    line-height: 1.2;
    cursor: pointer;
    min-height: 40px;
    box-shadow: 0 0 0 1px rgba(0, 180, 255, 0.06);
}
.opynia-sizing-chip:hover {
    border-color: rgba(0, 180, 255, 0.7);
    background: linear-gradient(145deg, rgba(0, 90, 140, 0.45), rgba(0, 40, 80, 0.35));
    box-shadow: 0 0 12px rgba(0, 180, 255, 0.18);
}
.opynia-sizing-chip:active {
    transform: scale(0.98);
}
.opynia-sizing-chip:disabled,
.opynia-sizing-chips.is-used .opynia-sizing-chip {
    opacity: 0.4;
    cursor: default;
    box-shadow: none;
    transform: none;
}
@media (max-width: 520px) {
    .opynia-sizing-chip {
        flex: 1 1 calc(50% - 8px);
        min-height: 44px;
    }
}
