/* =============================================
   MR ASSISTANT — CSS
   ============================================= */

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

:root {
    --bg:        #090e1a;
    --bg-2:      #0d1220;
    --bg-3:      #111827;
    --blue:      #3b6ef5;
    --blue-dark: #2a56d8;
    --blue-glow: rgba(59,110,245,.35);
    --text:      #f0f4ff;
    --text-2:    #8a94a8;
    --text-3:    #4a5a80;
    --border:    rgba(255,255,255,.08);
    --radius:    12px;
    --radius-lg: 16px;
    --radius-pill: 9999px;
    --font-heading: 'Space Grotesk', sans-serif;
    --transition: .25s ease;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
}

/* ---- SCROLLBAR ---- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-2); }
::-webkit-scrollbar-thumb { background: var(--blue-dark); border-radius: 3px; }

/* ---- UTILS ---- */
.text-blue { color: var(--blue); }

/* ============ NAVBAR ============ */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    padding: 0 2rem;
    transition: background var(--transition), box-shadow var(--transition);
}
.navbar.scrolled {
    background: rgba(7, 11, 20, .92);
    backdrop-filter: blur(16px);
    box-shadow: 0 1px 0 var(--border);
}
.nav-container {
    max-width: 1280px; margin: 0 auto;
    display: flex; align-items: center;
    height: 72px;
    position: relative;
}
.nav-logo {
    display: flex; align-items: center; gap: 10px;
    text-decoration: none; color: var(--text);
    font-weight: 700; font-size: 1.1rem;
    flex-shrink: 0;
}
.logo-badge {
    width: 36px; height: 36px;
    background: var(--blue);
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: .75rem; font-weight: 800; color: #fff;
    letter-spacing: .04em;
}
/* Vrai logo MR PNG dans la nav (retina 2x → hauteur CSS = moitié du pixel natif) */
.nav-logo-img {
    height: 32px;          /* 32px CSS = 64px natifs sur écran retina */
    width: auto;
    display: block;
    flex-shrink: 0;
}
/* liens centrés absolument dans la navbar */
.nav-links {
    display: flex; list-style: none; gap: .25rem;
    position: absolute; left: 50%; transform: translateX(-50%);
    margin: 0;
}
.nav-links a {
    display: block; padding: .5rem .9rem;
    color: var(--text-2); text-decoration: none; font-size: .9rem; font-weight: 500;
    border-radius: 8px;
    transition: color var(--transition), background var(--transition);
}
.nav-links a:hover { color: var(--text); background: rgba(255,255,255,.06); }
.nav-cta { margin-left: auto; }
.nav-toggle {
    display: none; flex-direction: column; gap: 5px;
    background: none; border: none; cursor: pointer; padding: 4px;
}
.nav-toggle span {
    display: block; width: 22px; height: 2px;
    background: var(--text-2); border-radius: 2px;
    transition: var(--transition);
}

/* ============ BUTTONS ============ */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    gap: 8px; padding: 10px 20px; height: 40px;
    border-radius: var(--radius-pill); font-weight: 500; font-size: .875rem;
    cursor: pointer; text-decoration: none; border: none;
    transition: all var(--transition); white-space: nowrap;
}
.btn-primary {
    background: var(--blue); color: #fff;
    box-shadow: 0 0 24px var(--blue-glow);
}
.btn-primary:hover {
    background: var(--blue-dark);
    box-shadow: 0 0 36px rgba(59,110,245,.5);
    transform: translateY(-1px);
}
.btn-ghost {
    background: transparent;
    color: var(--text);
    border: 1px solid rgba(255,255,255,.2);
}
.btn-ghost:hover {
    background: rgba(255,255,255,.08);
    border-color: rgba(255,255,255,.3);
}
.btn-lg { padding: 14px 28px; height: auto; font-size: .9375rem; }
.btn-icon { gap: 10px; }

/* ============ HERO ============ */
.hero {
    position: relative;
    height: 100vh;
    min-height: 680px;
    display: flex;
    align-items: stretch;
    padding-top: 72px;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute; inset: 0;
    /* Tache bleue — derrière le contenu texte */
    background: radial-gradient(ellipse 34% 46% at 32% 52%, rgba(22, 58, 210, 0.50) 0%, transparent 72%);
    pointer-events: none; z-index: 0;
    animation: glowBreath 7s ease-in-out infinite alternate;
}
.hero::after {
    content: '';
    position: absolute; inset: 0;
    /* Tache rose/magenta — derrière le robot */
    background: radial-gradient(ellipse 28% 40% at 70% 55%, rgba(168, 22, 72, 0.38) 0%, transparent 70%);
    pointer-events: none; z-index: 0;
    animation: glowBreath 9s ease-in-out infinite alternate-reverse;
}
.hero-content {
    position: relative; z-index: 2;
    width: 48%;
    min-width: 360px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* align left edge with navbar container (mirrors nav-container centering) */
    padding: 0 3rem 0 max(calc((100vw - 1280px) / 2), 2rem);
    animation: fadeInUp .8s ease both;
}
.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    padding: .4rem .9rem; border-radius: 100px;
    background: rgba(59,110,245,.12);
    border: 1px solid rgba(59,110,245,.3);
    color: var(--blue); font-size: .8rem; font-weight: 600;
    margin-bottom: 1.75rem;
    width: fit-content;
}
.hero-title {
    font-family: var(--font-heading);
    font-size: 72px;
    font-weight: 700; line-height: 1;
    letter-spacing: -.01em;
    margin-bottom: 1.25rem;
}
.hero-desc {
    font-size: 18px; color: var(--text-2); line-height: 1.625;
    max-width: 512px; margin-bottom: 2.25rem;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-robot {
    /* container large ancré à droite — robot à ~65% du viewport
       déborde à droite pour masquer le badge Spline sans overlay */
    position: absolute;
    top: 75px; bottom: 0;   /* 75px = descend le robot pour l'éloigner du menu */
    left: 30%;
    right: -220px;
    pointer-events: none;
    z-index: 1;
    cursor: pointer;        /* indique visuellement que le robot est cliquable */
}
.hero-robot spline-viewer {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}
.scroll-hint {
    position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    color: var(--text-3); font-size: .7rem; font-weight: 600; letter-spacing: .12em;
    animation: bounce 2s infinite;
    z-index: 2;
}
.scroll-arrow {
    animation: scrollArrow 2s ease infinite;
}

/* ============ FEATURES ============ */
.features {
    padding: 8rem 2rem;
    position: relative;
}
.features::before {
    content: '';
    position: absolute; top: 0; left: 50%; transform: translateX(-50%);
    width: 1px; height: 80px;
    background: linear-gradient(to bottom, transparent, var(--blue-dark), transparent);
}
.section-container { max-width: 1100px; margin: 0 auto; }
.section-badge {
    display: block;
    width: fit-content;
    margin: 0 auto 1.5rem;
    padding: 6px 16px;
    border-radius: 9999px;
    background: rgba(224, 6, 20, 0.10);
    border: 1px solid rgba(224, 6, 20, 0.20);
    color: rgb(224, 6, 20);
    font-size: 14px;
    font-weight: 600;
}
.section-title {
    font-family: var(--font-heading);
    font-size: 48px;
    font-weight: 700; letter-spacing: normal;
    text-align: center; margin-bottom: 1rem;
    color: var(--text);
}
.section-subtitle {
    text-align: center; color: var(--text-2);
    font-size: 18px; margin-bottom: 4rem;
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}
.feature-card {
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
    opacity: 0; transform: translateY(30px);
}
.feature-card.visible {
    opacity: 1; transform: translateY(0);
    transition: opacity .6s ease, transform .6s ease, border-color var(--transition), box-shadow var(--transition);
}
.feature-card:hover {
    border-color: rgba(59,110,245,.3);
    box-shadow: 0 0 40px rgba(59,110,245,.08);
    transform: translateY(-4px);
}
.feature-icon {
    width: 48px; height: 48px;
    background: rgba(59,110,245,.12);
    border: 1px solid rgba(59,110,245,.2);
    border-radius: var(--radius);
    display: flex; align-items: center; justify-content: center;
    color: var(--blue); margin-bottom: 1.25rem;
}
.feature-card h3 {
    font-family: var(--font-heading);
    font-size: 20px; font-weight: 600; margin-bottom: .6rem;
}
.feature-card p { color: var(--text-2); font-size: 16px; line-height: 1.65; }

/* ============ CTA ============ */
.cta-section {
    padding: 8rem 2rem;
    background: radial-gradient(ellipse 80% 50% at 50% 60%, rgba(30,50,140,.18) 0%, transparent 70%);
}
.cta-inner { text-align: center; }
.cta-icon {
    width: 64px; height: 64px; margin: 0 auto 2rem;
    background: rgba(59,110,245,.12);
    border: 1px solid rgba(59,110,245,.25);
    border-radius: var(--radius-lg);
    display: flex; align-items: center; justify-content: center;
    color: var(--blue);
}
.cta-section h2 {
    font-family: var(--font-heading);
    font-size: 48px;
    font-weight: 700; letter-spacing: normal; margin-bottom: 1rem;
}
.cta-section p { color: var(--text-2); font-size: 18px; margin-bottom: 2.5rem; line-height: 1.625; }
.chat-preview {
    display: flex; flex-direction: column; gap: 10px;
    max-width: 360px; margin: 3rem auto 0;
}
.chat-preview-msg {
    display: flex; align-items: flex-end; gap: 10px;
}
.chat-preview-msg.user { justify-content: flex-end; }
.chat-avatar {
    width: 32px; height: 32px; flex-shrink: 0;
    background: var(--blue); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: .65rem; font-weight: 800; color: #fff;
}
.chat-preview-msg .chat-bubble {
    padding: .7rem 1rem; border-radius: 14px;
    font-size: .85rem; max-width: 260px; line-height: 1.5;
}
.chat-preview-msg.bot .chat-bubble {
    background: var(--bg-3); color: var(--text);
    border-radius: 14px 14px 14px 4px;
}
.chat-preview-msg.user .chat-bubble {
    background: rgba(59,110,245,.15);
    border: 1px solid rgba(59,110,245,.25);
    color: var(--text);
    border-radius: 14px 14px 4px 14px;
}

/* ============ FOOTER ============ */
.footer {
    padding: 2rem;
    border-top: 1px solid var(--border);
}
.footer-container {
    max-width: 1280px; margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 1rem;
}
.footer-left { display: flex; align-items: center; gap: 1.5rem; }
.footer-left p { color: var(--text-3); font-size: .85rem; }
.footer-right { display: flex; gap: 1.5rem; }
.footer-right a { color: var(--text-3); font-size: .85rem; text-decoration: none; transition: color var(--transition); }
.footer-right a:hover { color: var(--text); }

/* ============ CHAT WIDGET ============ */
.chat-fab {
    position: fixed; bottom: 2rem; right: 2rem; z-index: 200;
    width: 52px; height: 52px;
    background: var(--blue);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #fff; cursor: pointer;
    box-shadow: 0 4px 24px var(--blue-glow);
    transition: transform var(--transition), box-shadow var(--transition);
}
.chat-fab:hover { transform: scale(1.1); box-shadow: 0 4px 36px rgba(59,110,245,.6); }
.chat-fab.hidden { opacity: 0; pointer-events: none; transform: scale(.8); }

.chat-panel {
    position: fixed; top: 0; right: 0; bottom: 0; z-index: 300;
    width: 400px; max-width: 100vw;
    background: var(--bg-2);
    border-left: 1px solid var(--border);
    display: flex; flex-direction: column;
    transform: translateX(100%);
    transition: transform .35s cubic-bezier(.4,0,.2,1);
    box-shadow: -8px 0 40px rgba(0,0,0,.4);
}
.chat-panel.open { transform: translateX(0); }

.chat-panel-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}
.chat-panel-info { display: flex; align-items: center; gap: 12px; }
.chat-panel-avatar {
    width: 40px; height: 40px;
    background: var(--blue); border-radius: 50%;
    display: flex; align-items: center; justify-content: center; color: #fff;
}
.chat-panel-info strong { display: block; font-weight: 700; font-size: .95rem; }
.chat-status {
    font-size: .78rem; color: #34d399;
    display: flex; align-items: center; gap: 5px;
}
.chat-status::before {
    content: ''; display: inline-block;
    width: 7px; height: 7px; border-radius: 50%; background: #34d399;
}
.chat-panel-actions { display: flex; gap: 4px; }
.chat-action-btn {
    width: 34px; height: 34px; border-radius: 8px;
    background: none; border: none; cursor: pointer;
    color: var(--text-2); display: flex; align-items: center; justify-content: center;
    transition: background var(--transition), color var(--transition);
}
.chat-action-btn:hover { background: rgba(255,255,255,.07); color: var(--text); }

.chat-panel-body { flex: 1; overflow-y: auto; padding: 1.5rem; }

.chat-welcome {
    display: flex; flex-direction: column; align-items: center;
    text-align: center; padding: 2rem 0 1rem;
}
.chat-welcome-icon {
    width: 64px; height: 64px; border-radius: var(--radius-lg);
    background: rgba(59,110,245,.12); border: 1px solid rgba(59,110,245,.25);
    color: var(--blue); display: flex; align-items: center; justify-content: center;
    margin-bottom: 1.25rem;
}
.chat-welcome h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: .5rem; }
.chat-welcome p { color: var(--text-2); font-size: .88rem; line-height: 1.6; max-width: 280px; }
.chat-suggestions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 1.25rem; }
.suggestion-chip {
    padding: .45rem .9rem; border-radius: 100px;
    background: rgba(255,255,255,.05); border: 1px solid var(--border);
    color: var(--text-2); font-size: .8rem; cursor: pointer;
    transition: all var(--transition);
}
.suggestion-chip:hover { background: rgba(59,110,245,.12); border-color: rgba(59,110,245,.3); color: var(--blue); }

.chat-messages { display: flex; flex-direction: column; gap: 12px; margin-top: 1rem; }
.msg { display: flex; gap: 10px; align-items: flex-end; }
.msg.msg-user { flex-direction: row-reverse; }
.msg-avatar {
    width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0;
    background: var(--blue); display: flex; align-items: center; justify-content: center;
    font-size: .6rem; font-weight: 800; color: #fff;
    overflow: hidden;
}
/* Logo MR dans l'avatar */
.msg-avatar img { width: 100%; height: 100%; object-fit: cover; }
.msg-bubble {
    max-width: 75%; padding: .65rem 1rem; border-radius: 14px;
    font-size: .875rem; line-height: 1.55;
}
.msg.msg-bot .msg-bubble {
    background: var(--bg-3); color: var(--text);
    border-radius: 14px 14px 14px 4px;
}
.msg.msg-user .msg-bubble {
    background: var(--blue); color: #fff;
    border-radius: 14px 14px 4px 14px;
}
.typing-indicator {
    display: flex; gap: 4px; align-items: center;
    padding: .65rem 1rem; background: var(--bg-3);
    border-radius: 14px 14px 14px 4px;
}
.typing-indicator span {
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--text-3); animation: typing .9s infinite;
}
.typing-indicator span:nth-child(2) { animation-delay: .2s; }
.typing-indicator span:nth-child(3) { animation-delay: .4s; }

.chat-panel-footer {
    display: flex; gap: 10px; align-items: center;
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border);
    flex-shrink: 0;
}
.chat-input {
    flex: 1; padding: .75rem 1rem; border-radius: var(--radius);
    background: var(--bg-3); border: 1px solid var(--border);
    color: var(--text); font-size: .9rem; outline: none;
    transition: border-color var(--transition);
    font-family: inherit;
}
.chat-input::placeholder { color: var(--text-3); }
.chat-input:focus { border-color: rgba(59,110,245,.5); }
.chat-send {
    width: 42px; height: 42px; border-radius: var(--radius);
    background: var(--blue); border: none; cursor: pointer;
    color: #fff; display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; transition: background var(--transition), transform var(--transition);
}
.chat-send:hover { background: var(--blue-dark); transform: scale(1.05); }
.chat-send:active { transform: scale(.95); }

.chat-overlay {
    position: fixed; inset: 0; z-index: 250;
    background: rgba(0,0,0,.5);
    opacity: 0; pointer-events: none;
    transition: opacity .35s ease;
}
.chat-overlay.visible { opacity: 1; pointer-events: auto; }

/* ── Topics dans le chat ── */
.chat-topics {
    width: 100%;
    margin: 1rem 0 .5rem;
}
.topics-label {
    font-size: .72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--text-3);
    margin-bottom: .6rem;
}
.topics-chips {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    justify-content: center;
}
.topic-chip {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .45rem .9rem;
    background: rgba(59,110,245,.08);
    border: 1px solid rgba(59,110,245,.2);
    border-radius: 100px;
    color: var(--text-2);
    font-size: .82rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
}
.topic-chip:hover {
    background: rgba(59,110,245,.16);
    border-color: rgba(59,110,245,.4);
    color: var(--text);
    transform: translateY(-1px);
}
.topic-chip.active {
    background: var(--blue);
    border-color: var(--blue);
    color: #fff;
    box-shadow: 0 0 16px rgba(59,110,245,.4);
}
.topic-chip-icon { font-size: 1rem; }
.topic-loading { color: var(--text-3); font-size: .82rem; font-style: italic; }

/* Bandeau sujet actif dans le header du chat */
.chat-active-topic {
    display: none;
    align-items: center;
    gap: .5rem;
    padding: .4rem 1.25rem;
    background: rgba(59,110,245,.08);
    border-bottom: 1px solid rgba(59,110,245,.15);
    font-size: .78rem;
    color: #7fa0ff;
    flex-shrink: 0;
}
.chat-active-topic.visible { display: flex; }
.chat-active-topic-icon { font-size: 1rem; }
.chat-active-topic-clear {
    margin-left: auto;
    background: none;
    border: none;
    color: var(--text-3);
    cursor: pointer;
    padding: .15rem .3rem;
    border-radius: 4px;
    font-size: .8rem;
    transition: color var(--transition);
}
.chat-active-topic-clear:hover { color: var(--text); }

/* Réponses bot avec markdown simple */
.msg-bubble p  { margin-bottom: .6em; }
.msg-bubble p:last-child { margin-bottom: 0; }
.msg-bubble ul, .msg-bubble ol { padding-left: 1.2em; margin-bottom: .6em; }
.msg-bubble li { margin-bottom: .2em; }
.msg-bubble strong { color: var(--text); font-weight: 600; }
.msg-bubble a { color: var(--blue); text-decoration: none; }
.msg-bubble a:hover { text-decoration: underline; }
.msg-bubble code { background: rgba(255,255,255,.07); padding: .1rem .35rem; border-radius: 4px; font-size: .85em; font-family: monospace; }
.msg-bubble hr { border: none; border-top: 1px solid rgba(255,255,255,.1); margin: .75rem 0; }
/* Tous les §§ après la ligne de séparation = footer de réponse (petite police, gris) */
.msg-bubble hr ~ p { font-size: .82rem; color: var(--text-2); line-height: 1.5; }
/* Liens dans le footer : légèrement plus clairs pour ressortir */
.msg-bubble hr ~ p a { color: #7aa0ff; }
.msg-bubble hr ~ p a:hover { color: var(--text); text-decoration: underline; }

/* ============ ANIMATIONS ============ */
@keyframes glowBreath {
    from { opacity: .65; transform: scale(1); }
    to   { opacity: 1;   transform: scale(1.08); }
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(32px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%       { transform: translateX(-50%) translateY(6px); }
}
@keyframes scrollArrow {
    0%, 100% { transform: translateY(0); opacity: 1; }
    50%       { transform: translateY(5px); opacity: .5; }
}
@keyframes typing {
    0%, 100% { transform: translateY(0); opacity: .4; }
    50%       { transform: translateY(-4px); opacity: 1; }
}

/* ============ RESPONSIVE ============ */
@media (max-width: 768px) {
    /* Bouton CTA caché sur mobile */
    .nav-cta { display: none; }

    /* hamburger affiché, poussé à droite */
    .nav-toggle { display: flex; margin-left: auto; }

    /* Menu mobile — masqué par défaut, glisse depuis le haut */
    .nav-links {
        display: flex !important;           /* override le display:none desktop-only */
        flex-direction: column;
        gap: 0;
        position: fixed;
        top: 72px; left: 0; right: 0;
        background: rgba(7, 11, 20, .72);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-bottom: 1px solid rgba(255,255,255,.08);
        padding: .5rem 1rem 1rem;
        z-index: 10000;                     /* au-dessus du hero-robot::after (9999) */
        /* état fermé */
        transform: translateY(-110%);
        opacity: 0;
        pointer-events: none;
        transition: transform .28s ease, opacity .28s ease;
    }
    .nav-links li { width: 100%; }
    .nav-links a {
        display: block;
        padding: .85rem 1rem;
        font-size: 1rem;
        border-radius: 10px;
        color: var(--text-2);
    }
    .nav-links a:hover { color: var(--text); }

    /* état ouvert */
    .navbar.nav-open .nav-links {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    /* Animation burger → croix */
    .nav-toggle span { transition: transform .25s ease, opacity .25s ease; }
    .navbar.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .navbar.nav-open .nav-toggle span:nth-child(2) { opacity: 0; transform: scaleX(0); }
    .navbar.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 0;
        height: auto;
        min-height: unset;
        overflow: hidden;
    }

    /* Robot first, full viewport height */
    .hero-robot {
        order: 1;
        position: relative;
        width: 100%;
        height: 100vh;
        left: auto; right: auto; top: auto; bottom: auto;
        pointer-events: none;
        overflow: hidden;
    }
    /* Viewer hidden until camera locked — avoids the small→big intro animation */
    .hero-robot spline-viewer {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        opacity: 0;
        transition: opacity 0.5s ease;
    }
    .hero-robot.spline-ready spline-viewer {
        opacity: 1;
    }
    /* Gradient overlay hides Spline badge at bottom */
    .hero-robot::after {
        content: '';
        position: absolute;
        bottom: 0; left: 0; right: 0;
        height: 100px;
        background: linear-gradient(to bottom, transparent 0%, var(--bg) 40%);
        pointer-events: none;
        z-index: 9999;
    }

    /* Text content centered below */
    .hero-content {
        order: 2;
        width: 100%;
        min-width: unset;
        flex-shrink: 0;
        padding: 4rem 1.5rem 5rem;
        align-items: center;
    }
    .hero-badge { margin-left: auto; margin-right: auto; }
    .hero-desc { max-width: 100%; }
    .hero-actions { justify-content: center; }
    .scroll-hint { display: none; }

    .chat-panel { width: 100%; border-left: none; border-top: 1px solid var(--border); }
    .footer-container { flex-direction: column; align-items: flex-start; }
    .features-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .hero-title { font-size: 2rem; }
    .btn-lg { padding: .75rem 1.4rem; font-size: .95rem; }
}
