/* DERMALLIANCE - GENERATIONAL UI/UX SYSTEM */

:root {
    /* Colors - Deep Navy Luxury */
    --clr-white: #F1F5F9; /* Very Light Slate Background */
    --clr-navy-light: #E2E8F0; 
    --clr-charcoal: rgb(92, 127, 152); /* Dark Navy Text */
    --clr-accent: #5A7A91; 
    --glass: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(15, 23, 42, 0.05);
    
    /* Typography */
    --font-display: 'Inter', sans-serif;
    --font-sans: 'Roboto Condensed', sans-serif;
    
    --space-unit: 1rem;
    --container-padding: 8vw; 
}

@keyframes glowPulse {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.1); }
}

.glass-card {
    background: var(--glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}



.glow-bg {
    position: absolute;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(90, 122, 145, 0.08) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
    filter: blur(120px);
}

.grid-pattern {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(15, 23, 42, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: 0;
}

.serif-italic {
    font-family: var(--font-display);
    font-style: normal;
}

.vertical-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, var(--clr-accent), transparent);
}

.scientific-row {
    border-bottom: 1px solid rgba(15, 23, 42, 0.05);
    padding: 2.5rem 0;
    transition: all 0.5s ease;
}

.scientific-row:hover {
    padding-left: 1rem;
    border-bottom-color: var(--clr-accent);
}

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

.icon-label {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(92, 127, 152, 0.2);
    border-radius: 50%;
    color: var(--clr-charcoal);
    font-size: 16px;
    transition: all 0.5s ease;
}

.scientific-row:hover .icon-label {
    background: var(--clr-charcoal);
    color: var(--clr-white);
    border-color: var(--clr-charcoal);
}

.liquid-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: var(--clr-white);
    overflow: hidden;
}

.blob {
    position: absolute;
    width: 70vw;
    height: 70vw;
    background: radial-gradient(circle, rgba(90, 122, 145, 0.08) 0%, transparent 70%);
    filter: blur(120px);
    border-radius: 50%;
    animation: move 40s infinite alternate cubic-bezier(0.45, 0, 0.55, 1);
}

.blob-1 { top: -20%; left: -20%; animation-duration: 50s; }
.blob-2 { bottom: -20%; right: -20%; background: radial-gradient(circle, rgba(255, 255, 255, 0.02) 0%, transparent 70%); animation-duration: 60s; animation-delay: -10s; }
.blob-3 { top: 30%; left: 20%; width: 50vw; height: 50vw; background: radial-gradient(circle, rgba(90, 122, 145, 0.02) 0%, transparent 70%); animation-duration: 45s; animation-delay: -20s; }

@keyframes move {
    0% { transform: translate(0, 0) rotate(0deg) scale(1); }
    33% { transform: translate(15vw, 10vh) rotate(10deg) scale(1.1); }
    66% { transform: translate(-10vw, 20vh) rotate(-5deg) scale(0.9); }
    100% { transform: translate(5vw, -10vh) rotate(5deg) scale(1); }
}

#preloader.loaded {
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transition: opacity 0.8s ease, visibility 0.8s;
}

#loader-bar.animate {
    width: 100% !important;
    transition: width 2s ease-in-out;
}

/* --- RESET & BASE --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html.lenis {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto;
}

body {
    background-color: var(--clr-white);
    color: var(--clr-charcoal);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-optical-sizing: auto;
    font-weight: 300; /* Skinnier/Light weight */
    font-style: normal;
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.text-gradient-gold {
    background: linear-gradient(
        to right,
        #334155 20%,
        #5A7A91 40%,
        #94A3B8 50%,
        #5A7A91 60%,
        #334155 80%
    );
    background-size: 200% auto;
    color: #000;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine 8s linear infinite;
}

@keyframes shine {
    to {
        background-position: 200% center;
    }
}

.bg-gradient-gold {
    background: linear-gradient(
        to right,
        #334155 20%,
        #5A7A91 40%,
        #94A3B8 50%,
        #5A7A91 60%,
        #334155 80%
    );
    background-size: 200% auto;
    animation: shine 8s linear infinite;
}

.text-gradient-orange {
    background: linear-gradient(
        to right,
        #94a3b8 20%,
        #F97316 40%,
        #FB923C 50%,
        #F97316 60%,
        #94a3b8 80%
    );
    background-size: 200% auto;
    color: #000;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine 8s linear infinite;
}

.magnetic {
    display: inline-block;
    transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.4;
}

.font-serif-italic {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 300;
    text-transform: lowercase;
}

/* --- UTILITIES --- */
.container-custom {
    padding-left: var(--container-padding);
    padding-right: var(--container-padding);
    max-width: 1440px;
    margin: 0 auto;
}

.glass {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.text-white { color: #0F172A !important; }
.text-white\/30 { color: rgba(15, 23, 42, 0.9) !important; }
.text-white\/40 { color: rgba(15, 23, 42, 0.95) !important; }
.text-white\/20 { color: rgba(15, 23, 42, 0.6) !important; }
.text-white\/10 { color: rgba(15, 23, 42, 0.4) !important; }

.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.015;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* --- SECTIONS --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 100px;
}

.hero-title {
    font-size: clamp(3rem, 10vw, 8rem);
}

.hero-img-reveal {
    width: 100%;
    height: 100%;
    overflow: hidden;
    clip-path: polygon(0 0, 0 0, 0 100%, 0% 100%);
    transition: clip-path 1.5s cubic-bezier(0.77, 0, 0.175, 1);
}

.hero-img-reveal.active {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}

.hero-img-reveal img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.2);
    transition: transform 1.5s cubic-bezier(0.77, 0, 0.175, 1);
}

.hero-img-reveal.active img {
    transform: scale(1);
}

/* --- HOME HERO RESPONSIVE SYSTEM --- */
.home-hero {
    position: relative;
    min-height: 100svh;
    display: flex;
    align-items: stretch;
    justify-content: center;
    overflow: hidden;
}

.home-hero-bg,
.home-hero-bg-desktop,
.home-hero-bg-mobile,
.home-hero-fade {
    position: absolute;
    inset: 0;
}

.home-hero-bg {
    z-index: 0;
}

.home-hero-bg-desktop,
.home-hero-bg-mobile {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.5;
}

.home-hero-bg-desktop {
    display: none;
}

.home-hero-fade {
    top: auto;
    height: 52svh;
    background: linear-gradient(to top, var(--clr-white) 0%, rgba(241, 245, 249, 0.54) 48%, transparent 100%);
}

.home-hero-inner {
    position: relative;
    z-index: 1;
    width: min(100%, 72rem);
    min-height: 100svh;
    margin: 0 auto;
    padding: calc(6rem + env(safe-area-inset-top)) 1.25rem calc(1.35rem + env(safe-area-inset-bottom));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
}

.home-hero-logo-wrap {
    position: relative;
    width: 100%;
    text-align: center;
    margin-bottom: 1.35rem;
}

.home-hero-glow {
    position: absolute;
    inset: -16% 6%;
    border-radius: 999px;
    background: rgba(90, 122, 145, 0.05);
    filter: blur(90px);
    pointer-events: none;
}

.home-hero-logo {
    position: relative;
    z-index: 1;
    display: inline-block;
    width: 100%;
    max-width: 15.5rem;
    height: auto;
}

.home-hero-content {
    width: 100%;
    max-width: 54rem;
    margin: 0 auto;
}

.home-hero-title {
    max-width: 21rem;
    margin: 0 auto 1.15rem;
    font-family: var(--font-display);
    font-size: clamp(1.4rem, 7.2vw, 2rem);
    line-height: 1.08;
    letter-spacing: 0;
    font-weight: 300;
    text-transform: uppercase;
}

.home-hero-title span {
    display: block;
}

.home-hero-copy {
    max-width: 38rem;
    margin: 0 auto;
    color: #000;
    font-family: var(--font-sans);
    font-size: 0.88rem;
    line-height: 1.72;
    font-weight: 300;
    letter-spacing: 0;
}

.home-hero-subcopy {
    display: none;
    margin-top: 0.9rem;
    color: rgba(0, 0, 0, 0.62);
}

.home-hero-scroll {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    margin-top: 1.15rem;
    color: rgba(92, 127, 152, 0.55);
}

.home-hero-scroll div {
    width: 1px;
    height: 1.55rem;
    border-radius: 999px;
    background: currentColor;
    animation: heroScrollPulse 1.8s ease-in-out infinite;
}

.home-hero-scroll i {
    font-size: 0.63rem;
}

@keyframes heroScrollPulse {
    0%, 100% { opacity: 0.35; transform: translateY(0); }
    50% { opacity: 0.78; transform: translateY(0.25rem); }
}

@media (min-width: 640px) {
    .home-hero-inner {
        padding-left: 2rem;
        padding-right: 2rem;
    }

    .home-hero-logo-wrap {
        margin-bottom: 1.7rem;
    }

    .home-hero-logo {
        max-width: 21rem;
    }

    .home-hero-title {
        max-width: 40rem;
        margin-bottom: 1.35rem;
        font-size: clamp(1.6rem, 5.8vw, 2.65rem);
    }

    .home-hero-copy {
        font-size: 0.98rem;
    }

    .home-hero-subcopy {
        display: block;
    }
}

@media (min-width: 768px) {
    .home-hero-bg-desktop {
        display: block;
    }

    .home-hero-bg-mobile {
        display: none;
    }

    .home-hero-inner {
        padding-top: calc(7rem + env(safe-area-inset-top));
        padding-bottom: 3rem;
        justify-content: flex-start;
    }

    .home-hero-logo-wrap {
        margin-bottom: 3.25rem;
    }

    .home-hero-logo {
        max-width: 30rem;
        transition: transform 1s ease;
    }

    .home-hero-logo:hover {
        transform: scale(1.035);
    }

    .home-hero-title {
        max-width: 54rem;
        margin-bottom: 2.35rem;
        font-size: clamp(2rem, 6.8vw, 4.25rem);
        line-height: 1.05;
    }

    .home-hero-copy {
        max-width: 48rem;
        font-size: 1.08rem;
        line-height: 1.72;
    }

    .home-hero-scroll {
        display: none;
    }
}

@media (min-width: 1024px) {
    .home-hero-inner {
        padding-top: calc(8rem + env(safe-area-inset-top));
    }

    .home-hero-logo-wrap {
        margin-bottom: 5rem;
    }

    .home-hero-logo {
        max-width: 42.5rem;
    }

    .home-hero-content {
        max-width: 68rem;
    }

    .home-hero-title {
        max-width: 64rem;
        margin-bottom: 3.25rem;
        font-size: clamp(3rem, 4.6vw, 5.3125rem);
        line-height: 1.1;
    }

    .home-hero-title span {
        white-space: nowrap;
    }

    .home-hero-copy {
        max-width: 56rem;
        font-size: 1.25rem;
    }

    .home-hero-subcopy {
        font-size: 1.1rem;
        margin-top: 1.5rem;
    }
}

/* Perfect Mobile layout for Hero section */
@media (max-width: 767px) {
    .home-hero-inner {
        padding-top: calc(11rem + env(safe-area-inset-top));
        padding-bottom: calc(2rem + env(safe-area-inset-bottom));
        padding-left: 1.5rem;
        padding-right: 1.5rem;
        justify-content: space-between;
        min-height: 100svh;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .home-hero-logo-wrap {
        margin-bottom: 2.5rem;
        flex-shrink: 0;
    }

    .home-hero-logo {
        max-width: 24.5rem;
    }

    .home-hero-content {
        flex-grow: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
        margin: 1.5rem 0;
        width: 100%;
    }

    .home-hero-title {
        max-width: 22rem;
        margin: 0 auto 1.35rem;
        font-size: clamp(2.1rem, 9.8vw, 2.75rem);
        line-height: 1.15;
        letter-spacing: -0.015em;
        font-weight: 300;
        text-transform: uppercase;
    }

    .home-hero-copy {
        max-width: 26rem;
        margin: 0 auto;
        font-size: 1.05rem;
        line-height: 1.68;
        color: rgba(92, 127, 152, 0.95);
    }

    .home-hero-scroll {
        margin-top: auto;
        flex-shrink: 0;
    }
}

/* Very Small Mobile Viewports (iPhone SE / smaller Androids) */
@media (max-width: 380px) {
    .home-hero-inner {
        padding-top: calc(9.5rem + env(safe-area-inset-top));
        padding-bottom: calc(1.5rem + env(safe-area-inset-bottom));
    }

    .home-hero-logo-wrap {
        margin-bottom: 1.75rem;
    }

    .home-hero-logo {
        max-width: 19.5rem;
    }

    .home-hero-content {
        margin: 1rem 0;
    }

    .home-hero-title {
        max-width: 18.5rem;
        font-size: 1.85rem;
        margin-bottom: 1.1rem;
    }

    .home-hero-copy {
        max-width: 20rem;
        font-size: 0.95rem;
        line-height: 1.58;
    }
}

/* Extremely Short Height Screen Viewports (Landscape / Short devices) */
@media (max-height: 680px) and (max-width: 767px) {
    .home-hero-inner {
        padding-top: calc(8.5rem + env(safe-area-inset-top));
        padding-bottom: calc(1rem + env(safe-area-inset-bottom));
    }

    .home-hero-logo-wrap {
        margin-bottom: 1.5rem;
    }

    .home-hero-logo {
        max-width: 18.5rem;
    }

    .home-hero-content {
        margin: 0.75rem 0;
    }

    .home-hero-title {
        font-size: 1.65rem;
        margin-bottom: 0.85rem;
    }

    .home-hero-copy {
        font-size: 0.9rem;
        line-height: 1.55;
    }
}

/* --- BUTTONS --- */
.btn-premium {
    display: inline-flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1rem 2.5rem;
    border: 1px solid var(--clr-charcoal);
    font-family: var(--font-sans);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.75rem;
    text-decoration: none;
    color: var(--clr-charcoal);
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

.btn-premium:hover {
    background: var(--clr-charcoal);
    color: var(--clr-white);
}

/* --- BENTOGRID --- */
.bentogrid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 2rem;
    padding: 100px 0;
}

.bento-item {
    background: white;
    border-radius: 2.5rem;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

@media (min-width: 1024px) {
    .bento-item {
        padding: 4rem;
    }
}

/* --- ANIMATIONS --- */
.reveal-text {
    overflow: hidden;
    display: block;
}

.reveal-text span {
    display: block;
    transform: translateY(100%);
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-text.active span {
    transform: translateY(0);
}

/* --- NAV LINKS --- */
.nav-link {
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--clr-charcoal);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* --- BENTO ENHANCEMENTS --- */
.bento-item {
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.6s ease;
}

.bento-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0,0,0,0.1);
}

@keyframes fadeUp {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

.animate-fade-up {
    animation: fadeUp 1s ease-out forwards;
}

.floating-card {
    animation: floatCard 6s ease-in-out infinite;
    animation-delay: var(--delay, 0s);
}

@keyframes floatCard {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* --- PRELOADER ANIMATION --- */
#loader-bar {
    transition: width 2s cubic-bezier(0.65, 0, 0.35, 1);
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

.fade-out {
    animation: fadeOut 1s forwards;
}

/* =============================================
   RESPONSIVE — MOBILE & TABLETTE
   ============================================= */

/* Désactiver le canvas particules sur mobile (perf) */
@media (max-width: 767px) {
    #particle-canvas {
        display: none;
    }

    .blob {
        animation-duration: 100s;
        opacity: 0.5;
    }

    .glass-card {
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }

    .scientific-row {
        padding: 1.25rem 0;
        gap: 1rem;
    }

    .scientific-row:hover {
        padding-left: 0.25rem;
    }

    .noise-overlay {
        display: none;
    }
}

/* Touch devices : cibles min 44px & désactiver hover */
@media (hover: none) and (pointer: coarse) {
    .scientific-row:hover {
        padding-left: 0 !important;
        border-bottom-color: rgba(15, 23, 42, 0.05) !important;
    }

    .scientific-row:hover .icon-label {
        background: transparent;
        color: var(--clr-charcoal);
        border-color: rgba(92, 127, 152, 0.2);
    }

    .glass-card {
        transition: none;
    }
}

/* Tablette (768px – 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
    .container {
        padding-left: 2rem;
        padding-right: 2rem;
    }

    .scientific-row {
        padding: 1.75rem 0;
    }
}

/* =============================================
   CHATBOT WIDGET STYLING (A2S BOARD STYLE)
   ============================================= */

.chatbot-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 9999;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    
    /* Splash screen hide default */
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
    transition: opacity 0.8s cubic-bezier(0.23, 1, 0.32, 1), transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.chatbot-container.chatbot-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

/* Bouton flottant minimaliste */
.chat-toggle-btn {
    width: 56px;
    height: 56px;
    border-radius: 28px;
    background: linear-gradient(
        to right,
        #334155 20%,
        #5A7A91 40%,
        #94A3B8 50%,
        #5A7A91 60%,
        #334155 80%
    );
    background-size: 200% auto;
    animation: shine 8s linear infinite;
    color: white;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.3s ease;
}

.chat-toggle-btn .chat-icon,
.chat-toggle-btn .top-icon {
    position: absolute !important;
    left: 50% !important;
    top: 50% !important;
    margin: 0 !important;
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.4s ease;
}

/* Default state: Robot visible, Arrow rotated/hidden */
.chat-toggle-btn .chat-icon {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1) rotate(0deg) !important;
}

.chat-toggle-btn .top-icon {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.5) rotate(-180deg) !important;
}

/* Back to top state: Robot rotated/hidden, Arrow visible */
.chatbot-container.back-to-top-state .chat-toggle-btn .chat-icon {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.5) rotate(180deg) !important;
}

.chatbot-container.back-to-top-state .chat-toggle-btn .top-icon {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1) rotate(0deg) !important;
}

.chat-toggle-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
}

/* Fenêtre de chat Apple Style */
.chat-window {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 380px;
    height: 580px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: saturate(180%) blur(25px);
    -webkit-backdrop-filter: saturate(180%) blur(25px);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform-origin: bottom right;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
}

/* Header */
.chat-header {
    padding: 18px 24px;
    background: transparent;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.bot-icon-header {
    width: 34px;
    height: 34px;
    background: var(--clr-charcoal, #0f172a);
    color: #fff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-info h3 {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: #000;
    letter-spacing: -0.01em;
}

.status {
    font-size: 11px;
    color: #86868b;
    font-weight: 500;
    display: block;
    margin-top: -1px;
}

.close-btn {
    background: #f2f2f7;
    border: none;
    color: #86868b;
    width: 26px;
    height: 26px;
    border-radius: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.close-btn:hover {
    background: #e5e5ea;
}

/* Messages */
.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

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

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: rgba(15, 23, 42, 0.1);
    border-radius: 99px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: rgba(15, 23, 42, 0.2);
}

.message-wrapper {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    max-width: 85%;
}

.message-wrapper.user {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.assistant-avatar-mini {
    width: 20px;
    height: 20px;
    background: #e5e5ea;
    color: #8e8e93;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2px;
    flex-shrink: 0;
    font-size: 10px;
}

.message-bubble {
    padding: 10px 16px;
    border-radius: 20px;
    font-size: 14px;
    line-height: 1.4;
}

.assistant .message-bubble {
    background: #f2f2f7;
    color: #000;
    border-bottom-left-radius: 4px;
}

.user .message-bubble {
    background: var(--clr-charcoal, #5c7f98);
    color: white;
    border-bottom-right-radius: 4px;
}

/* Typing Indicator (Styled for A2S Apple Theme) */
.chat-typing-apple {
    padding: 10px 16px;
    background: #f2f2f7;
    color: #86868b;
    border-radius: 20px;
    border-bottom-left-radius: 4px;
    font-size: 13px;
    align-self: flex-start;
    margin-left: 28px;
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: 85%;
    margin-bottom: 10px;
}

/* Input Area */
.chat-input-area {
    padding: 14px 20px 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255,255,255,0.4);
    border-top: 1px solid rgba(0,0,0,0.03);
}

.chat-input-area input {
    flex: 1;
    background: #f2f2f7;
    border: none;
    border-radius: 22px;
    padding: 12px 18px;
    font-size: 14px;
    outline: none;
    color: #000;
    transition: all 0.2s;
}

.chat-input-area input:focus {
    background: #e5e5ea;
}

.chat-input-area button {
    color: var(--clr-charcoal, #5c7f98);
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 4px;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.chat-input-area button:hover {
    transform: scale(1.1);
}

/* --- MOBILE RESPONSIVENESS --- */
@media (max-width: 500px) {
    .chatbot-container {
        bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px));
        right: calc(1.25rem + env(safe-area-inset-right, 0px));
    }

    .chat-toggle-btn {
        width: 50px;
        height: 50px;
        border-radius: 25px;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    }

    .chat-window {
        bottom: 0;
        right: 0;
        width: calc(100vw - 2.5rem);
        height: calc(100vh - 6rem);
        max-height: 580px;
        border-radius: 24px;
    }

    .chat-messages {
        padding: 20px 15px;
    }

    .message-wrapper {
        max-width: 90%;
    }
}

/* ==========================================================================
   ULTIMATE TAILWIND CSS CDN FALLBACK SYSTEM
   This handles premium rendering even if the external CDN is offline/blocked.
   ========================================================================== */

/* Universal Reset Fallback */
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: #F8FAFC;
    color: #0B0F19;
}

/* Image Size Constraints (Prevents massive exploding logos on unstyled load) */
img {
    max-width: 100%;
    height: auto;
}

.logo img, .hero-logo, #loader-logo-container img {
    max-height: 48px !important;
    width: auto !important;
}

#loader-logo-container img {
    max-height: 96px !important;
}

/* Layout Mappings */
.fixed { position: fixed; }
.relative { position: relative; }
.absolute { position: absolute; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.z-\[1000\] { z-index: 1000; }
.z-\[500\] { z-index: 500; }
.z-\[600\] { z-index: 600; }

.flex { display: flex !important; }
.flex-col { flex-direction: column !important; }
.flex-row { flex-direction: row !important; }
.flex-wrap { flex-wrap: wrap !important; }
.items-center { align-items: center !important; }
.items-start { align-items: flex-start !important; }
.justify-center { justify-content: center !important; }
.justify-between { justify-content: space-between !important; }
.justify-end { justify-content: flex-end !important; }
.gap-2 { gap: 0.5rem !important; }
.gap-3 { gap: 0.75rem !important; }
.gap-4 { gap: 1rem !important; }
.gap-6 { gap: 1.5rem !important; }
.gap-8 { gap: 2rem !important; }
.gap-12 { gap: 3rem !important; }
.gap-16 { gap: 4rem !important; }

/* Page Spacing and Columns */
.pt-36 { padding-top: 9rem !important; }
.pt-40 { padding-top: 10rem !important; }
.pb-24 { padding-bottom: 6rem !important; }
.px-4 { padding-left: 1rem !important; padding-right: 1rem !important; }
.px-5 { padding-left: 1.25rem !important; padding-right: 1.25rem !important; }
.mb-4 { margin-bottom: 1rem !important; }
.mb-6 { margin-bottom: 1.5rem !important; }
.mb-8 { margin-bottom: 2rem !important; }
.mb-10 { margin-bottom: 2.5rem !important; }
.mb-12 { margin-bottom: 3rem !important; }
.mb-14 { margin-bottom: 3.5rem !important; }
.mb-24 { margin-bottom: 6rem !important; }

.max-w-5xl { max-width: 64rem !important; }
.mx-auto { margin-left: auto !important; margin-right: auto !important; }

/* Grids and Columns */
.grid { display: grid !important; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)) !important; }

@media (min-width: 640px) {
    .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
    .sm\:px-8 { padding-left: 2rem !important; padding-right: 2rem !important; }
}

@media (min-width: 1024px) {
    .lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
    .lg\:grid-cols-12 { grid-template-columns: repeat(12, minmax(0, 1fr)) !important; }
    .lg\:col-span-8 { grid-column: span 8 / span 8 !important; }
    .lg\:col-span-4 { grid-column: span 4 / span 4 !important; }
    .lg\:px-12 { padding-left: 3rem !important; padding-right: 3rem !important; }
    .lg\:px-16 { padding-left: 4rem !important; padding-right: 4rem !important; }
}

/* Typography Overrides */
a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s;
}

.text-gradient {
    background: linear-gradient(135deg, #0F172A 20%, #475569 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-xs { font-size: 0.75rem !important; }
.text-sm { font-size: 0.875rem !important; }
.text-lg { font-size: 1.125rem !important; }
.text-xl { font-size: 1.25rem !important; }
.text-3xl { font-size: 1.875rem !important; }
.text-4xl { font-size: 2.25rem !important; }
.text-5xl { font-size: 3rem !important; }

.font-bold { font-weight: 700 !important; }
.font-extrabold { font-weight: 800 !important; }
.font-medium { font-weight: 500 !important; }
.font-light { font-weight: 300 !important; }
.uppercase { text-transform: uppercase !important; }
.tracking-widest { letter-spacing: 0.1em !important; }

/* Component Fallbacks */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.glass-panel {
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.luxury-card {
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.7);
    padding: 2rem;
    border-radius: 2rem;
}

.bg-brand-white { background-color: #F8FAFC !important; }
.bg-brand-dark { background-color: #0B0F19 !important; }
.text-white { color: #FFFFFF !important; }


