/* ====================================================
   HiveTek Space Navigation — Public Website Styles
   ==================================================== */

/* ===== Space Universe Container ===== */
.space-universe {
    position: fixed;
    inset: 0;
    overflow: hidden;
    background: radial-gradient(ellipse at 50% 0%, #0d1b2a 0%, #030812 60%);
    z-index: 0;
}

#starsCanvas {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

/* ===== 3D Scene ===== */
.space-perspective {
    position: absolute;
    inset: 0;
    perspective: 2200px;
    perspective-origin: 50% 48%;
    z-index: 2;
}

.space-scene {
    position: absolute;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transform: translateZ(-1200px) rotateY(0deg);
    transition: transform 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

/* Sections on a pentagon ring — CSS positions them, JS does NOT touch these transforms */
.space-section {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    align-items: flex-end;   /* card bottom anchored to socle */
    justify-content: center;
    padding-top: 64px;       /* below topbar */
    padding-bottom: 12vh;    /* socle courant légèrement remonté */
    overflow: visible;
    backface-visibility: hidden;
}

.space-section[data-section="0"] { transform: rotateY(0deg)   translateZ(980px); --hex-accent: 108, 99, 255; }
.space-section[data-section="1"] { transform: rotateY(60deg)  translateZ(980px); --hex-accent:  59,130, 246; }
.space-section[data-section="2"] { transform: rotateY(120deg) translateZ(980px); --hex-accent:   0,212, 170; }
.space-section[data-section="3"] { transform: rotateY(180deg) translateZ(980px); --hex-accent: 108, 99, 255; }
.space-section[data-section="4"] { transform: rotateY(240deg) translateZ(980px); --hex-accent: 236, 72, 153; }
.space-section[data-section="5"] { transform: rotateY(300deg) translateZ(980px); --hex-accent: 108, 99, 255; }

/* ===== (intro logo removed) ===== */
#introLogo {
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) scale(1);
    z-index: 800;
    display: none; /* shown by JS */
    flex-direction: column;
    align-items: center;
    gap: 14px;
    pointer-events: none;
    animation: levitateIntro 3s ease-in-out infinite;
}

.intro-hex {
    position: relative;
    width: 180px;
    height: 208px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.intro-hex svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

/* Outer ring pulses like a portal event horizon */
.intro-hex .hex-outer {
    animation: portalRingPulse 1.8s ease-in-out infinite;
}

.intro-hex-label {
    position: relative;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 36px;
    font-weight: 800;
    letter-spacing: -0.02em;
    z-index: 2;
    text-shadow: 0 0 30px rgba(108,99,255,0.8), 0 0 60px rgba(108,99,255,0.4);
}

.intro-hex-label .logo-hive { color: #6C63FF; }
.intro-hex-label .logo-tek  { color: #ffffff; }

/* Multi-layer glow for portal energy */
.intro-glow {
    position: absolute;
    inset: -50px;
    background: radial-gradient(ellipse, rgba(108,99,255,0.55) 0%, rgba(0,212,170,0.15) 40%, transparent 70%);
    border-radius: 50%;
    filter: blur(18px);
    animation: introGlowPulse 1.8s ease-in-out infinite;
}

.intro-glow-outer {
    position: absolute;
    inset: -100px;
    background: radial-gradient(ellipse, rgba(108,99,255,0.2) 0%, transparent 65%);
    border-radius: 50%;
    filter: blur(30px);
    animation: introGlowPulse 1.8s ease-in-out infinite 0.4s;
}

.intro-domain {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: rgba(255,255,255,0.5);
    letter-spacing: 0.12em;
    text-shadow: 0 0 20px rgba(108,99,255,0.6);
}

@keyframes levitateIntro {
    0%, 100% { margin-top: 0px; }
    50%       { margin-top: -20px; }
}

@keyframes introGlowPulse {
    0%, 100% { opacity: 0.7; transform: scale(1); }
    50%       { opacity: 1;   transform: scale(1.2); }
}

@keyframes portalRingPulse {
    0%, 100% { opacity: 0.7; }
    50%       { opacity: 1; filter: drop-shadow(0 0 8px rgba(108,99,255,0.9)); }
}


/* ===== Hex-ray decoration behind each section ===== */
/* ===== Hexagonal Pedestal / Socle (forme dessinée sur constellationCanvas) ===== */
.hex-base {
    position: absolute;
    left: 50%;
    top: 78%;
    transform: translateX(-50%) translateY(-50%);
    width: 80px;
    height: 40px;
    pointer-events: all;
    cursor: pointer;
    z-index: 10;
}

/* Ombre portée sous la card active */
.space-section.is-current .hex-base::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
    width: 300px;
    height: 44px;
    background: rgba(var(--hex-accent), 0.28);
    border-radius: 50%;
    filter: blur(28px);
}

/* ===== Top Navigation Bar ===== */
.space-topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 64px;
    z-index: 1000;
    display: flex;
    align-items: center;
    padding: 0 32px;
    gap: 32px;
    background: linear-gradient(180deg, rgba(3,8,18,0.95) 0%, rgba(3,8,18,0) 100%);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: background 0.3s;
}

.space-topbar.scrolled {
    background: rgba(3, 8, 18, 0.95);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.topbar-logo {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.02em;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}
.topbar-logo-img {
    width: 30px;
    height: 34px;
    display: block;
    flex-shrink: 0;
}

.logo-hive { color: #6C63FF; }
.logo-tek  { color: #ffffff; }

.topbar-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
    justify-content: center;
}

.nav-btn {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.01em;
}

.nav-btn:hover,
.nav-btn.active {
    color: #ffffff;
    background: rgba(108, 99, 255, 0.15);
}

.nav-btn.active {
    color: #a5b4fc;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.btn-signin {
    display: flex;
    align-items: center;
    background: rgba(108, 99, 255, 0.15);
    border: 1px solid rgba(108, 99, 255, 0.4);
    color: #a5b4fc;
    font-size: 13px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s;
    font-family: 'Inter', sans-serif;
    white-space: nowrap;
}

.btn-signin:hover {
    background: rgba(108, 99, 255, 0.3);
    border-color: rgba(108, 99, 255, 0.7);
    color: #c7d2fe;
}

/* ===== Mobile Burger ===== */
.menu-burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.menu-burger span {
    display: block;
    width: 22px;
    height: 2px;
    background: rgba(255,255,255,0.8);
    border-radius: 2px;
    transition: all 0.3s;
}

/* ===== Mobile Nav ===== */
.mobile-nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1500;
}

.mobile-nav {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100%;
    background: #0a0f1e;
    border-left: 1px solid rgba(255,255,255,0.05);
    z-index: 2000;
    padding: 80px 24px 24px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    transition: right 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.mobile-nav.open {
    right: 0;
}

.mobile-nav-overlay.open {
    display: block;
}

.nav-btn-mobile {
    background: transparent;
    border: none;
    color: rgba(255,255,255,0.7);
    font-size: 16px;
    font-weight: 500;
    padding: 14px 16px;
    border-radius: 10px;
    cursor: pointer;
    text-align: left;
    font-family: 'Inter', sans-serif;
    transition: all 0.2s;
    width: 100%;
}

.nav-btn-mobile:hover {
    background: rgba(108, 99, 255, 0.15);
    color: #ffffff;
}

.nav-signin-mobile {
    margin-top: auto;
    text-align: center;
    background: rgba(108, 99, 255, 0.15);
    border: 1px solid rgba(108, 99, 255, 0.3);
    color: #a5b4fc;
    text-decoration: none;
    display: block;
    padding: 14px 16px;
    border-radius: 10px;
    font-weight: 500;
    transition: all 0.2s;
}

.nav-signin-mobile:hover {
    background: rgba(108, 99, 255, 0.3);
}

/* ===== Carousel Arrows ===== */
.carousel-arrow {
    position: fixed;
    top: calc(64px + (78vh - 64px) / 2);
    transform: translateY(-50%);
    z-index: 500;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(8, 14, 32, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.7);
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.carousel-arrow:hover {
    background: rgba(108, 99, 255, 0.25);
    border-color: rgba(108, 99, 255, 0.5);
    color: #ffffff;
    box-shadow: 0 0 18px rgba(108, 99, 255, 0.35);
}
.carousel-arrow-left  { left:  20px; }
.carousel-arrow-right { right: 20px; }

@media (max-width: 768px) {
    .carousel-arrow { display: none; }
}

/* ===== Section Dots ===== */
.section-dots {
    position: fixed;
    right: 28px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 14px;
    z-index: 999;
    align-items: center;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    outline: none;
    padding: 0;
    flex-shrink: 0;
}

.dot::before {
    content: attr(title);
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    white-space: nowrap;
    color: rgba(255, 255, 255, 0.7);
    font-size: 11px;
    font-family: 'Inter', sans-serif;
    background: rgba(3, 8, 18, 0.8);
    padding: 3px 8px;
    border-radius: 4px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
    border: 1px solid rgba(255,255,255,0.08);
}

.dot:hover::before { opacity: 1; }
.dot:hover { background: rgba(255, 255, 255, 0.5); transform: scale(1.3); }
.dot.active {
    background: #6C63FF;
    border-color: #6C63FF;
    transform: scale(1.4);
    box-shadow: 0 0 10px rgba(108, 99, 255, 0.6);
}

/* ===== Card 3D wrapper — preserve-3d so faces rotate with the card ===== */
.card-3d-wrap {
    position: relative;
    transform-style: preserve-3d;
    width: 880px;
    max-width: calc(100vw - 100px);
}

/* Right face */
.card-3d-wrap::before {
    content: '';
    position: absolute;
    top: 4px; bottom: 4px;
    left: 100%;
    width: 14px;
    background: linear-gradient(to right, rgba(18,24,55,0.92), rgba(8,12,30,0.98));
    border-radius: 0 10px 10px 0;
    transform-origin: left center;
    transform: rotateY(90deg);
    backface-visibility: hidden;
}

/* Left face */
.card-3d-wrap::after {
    content: '';
    position: absolute;
    top: 4px; bottom: 4px;
    right: 100%;
    width: 14px;
    background: linear-gradient(to left, rgba(18,24,55,0.92), rgba(8,12,30,0.98));
    border-radius: 10px 0 0 10px;
    transform-origin: right center;
    transform: rotateY(-90deg);
    backface-visibility: hidden;
}

/* ===== Section Content — glass card with levitation ===== */
.section-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 880px;
    max-height: calc(84vh - 80px); /* topbar → bas de l'écran */
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain; /* empêche le scroll de la card de propager à la page */
    scrollbar-width: thin;
    scrollbar-color: rgba(108, 99, 255, 0.35) transparent;
    padding: 18px 52px 44px;
    background: rgb(3, 8, 18);
    outline: none;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 8px solid rgba(15, 22, 50, 0.98);
    border-radius: 20px;
    box-shadow:
        0 8px 48px rgba(0, 0, 0, 0.55),
        0 1px 0 rgba(255, 255, 255, 0.06) inset,
        0 10px 0 rgba(8, 12, 32, 0.95),
        0 14px 0 rgba(6, 9, 24, 0.7),
        0 18px 30px rgba(0, 0, 0, 0.6);
    animation: sectionLevitate 5s ease-in-out infinite;
}

.section-content::-webkit-scrollbar {
    width: 4px;
}
.section-content::-webkit-scrollbar-track {
    background: transparent;
}
.section-content::-webkit-scrollbar-thumb {
    background: rgba(108, 99, 255, 0.35);
    border-radius: 2px;
}

@keyframes sectionLevitate {
    0%, 100% { transform: translateY(0px);   box-shadow: 0 8px 48px rgba(0,0,0,0.55), 0 1px 0 rgba(255,255,255,0.06) inset; }
    50%       { transform: translateY(-12px); box-shadow: 0 24px 64px rgba(0,0,0,0.65), 0 1px 0 rgba(255,255,255,0.06) inset; }
}

/* Lévitation gérée par JS (startLevitation) via style.transform — plus fiable sur preserve-3d */
.card-3d-wrap {
    will-change: transform;
}
/* section-content ne lévite plus directement */
.section-content {
    animation: none !important;
}

/* App tiles inside carousel — no independent levitation */
.space-section .app-tile {
    animation: none;
}

.section-badge {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.15em;
    color: #6C63FF;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.section-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(36px, 5vw, 62px);
    font-weight: 700;
    color: #f1f5f9;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: clamp(16px, 2vw, 20px);
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 40px;
    line-height: 1.5;
}

/* ===== Hero Section ===== */
.hero-content {
    max-width: 760px;
    text-align: left;
}

.hero-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.15em;
    color: #00D4AA;
    text-transform: uppercase;
    background: rgba(0, 212, 170, 0.1);
    border: none;
    padding: 5px 14px;
    border-radius: 20px;
    margin-bottom: 24px;
}

.hero-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(40px, 6vw, 80px);
    font-weight: 700;
    color: #f1f5f9;
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin-bottom: 20px;
}

.gradient-text {
    background: linear-gradient(135deg, #6C63FF 0%, #00D4AA 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-sub {
    font-size: clamp(16px, 2vw, 20px);
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 12px;
    letter-spacing: 0.01em;
}

.hero-tagline {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.35);
    font-style: italic;
    margin-bottom: 40px;
}

.hero-ctas {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.cta-primary {
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #6C63FF, #5a52d5);
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Inter', sans-serif;
    box-shadow: 0 4px 20px rgba(108, 99, 255, 0.35);
}

.cta-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(108, 99, 255, 0.5);
}

.cta-secondary {
    display: flex;
    align-items: center;
    background: transparent;
    color: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 14px 28px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Inter', sans-serif;
}

.cta-secondary:hover {
    border-color: rgba(255, 255, 255, 0.4);
    color: white;
    background: rgba(255, 255, 255, 0.05);
}

.scroll-hint {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.3);
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.scroll-arrow {
    cursor: pointer;
    font-size: 20px;
    animation: bounce 2s infinite;
    color: rgba(255, 255, 255, 0.4);
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(6px); }
}

/* ===== Services Grid ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 8px;
    max-width: 760px;
}

.service-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 14px;
    padding: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
}

.service-card:hover {
    background: rgba(108, 99, 255, 0.08);
    border-color: rgba(108, 99, 255, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

.service-card.pulse-anim {
    animation: cardPulse 0.4s ease-out;
}

@keyframes cardPulse {
    0%   { transform: scale(1); }
    50%  { transform: scale(1.03); }
    100% { transform: scale(1); }
}

.service-icon-wrap {
    width: 52px;
    height: 52px;
    background: rgba(108, 99, 255, 0.1);
    border: 1px solid rgba(108, 99, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.service-card h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 17px;
    font-weight: 600;
    color: #e2e8f0;
    margin-bottom: 10px;
}

.service-card p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.45);
    line-height: 1.6;
}

/* ===== About Section ===== */
.about-content { max-width: 760px; }

.about-text {
    font-size: 17px;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.75;
    margin-bottom: 40px;
}

.about-stats {
    display: flex;
    align-items: center;
    gap: 32px;
    margin-bottom: 36px;
    flex-wrap: wrap;
}

.stat { text-align: center; }

.stat-value {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: #6C63FF;
    line-height: 1.1;
}

.stat-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 4px;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
}

.about-philosophy {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 20px 24px;
    background: rgba(0, 212, 170, 0.06);
    border: 1px solid rgba(0, 212, 170, 0.15);
    border-radius: 12px;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.6;
}

/* ===== Support Section ===== */
.support-content {
    text-align: center;
    max-width: 760px;
    margin: 0 auto;
}

.support-icon {
    width: 88px;
    height: 88px;
    background: rgba(108, 99, 255, 0.1);
    border: 1px solid rgba(108, 99, 255, 0.25);
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.support-text {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.7;
    margin-bottom: 36px;
}

.support-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 36px;
    flex-wrap: wrap;
}

.step {
    text-align: center;
}

.step-num {
    width: 36px;
    height: 36px;
    background: rgba(108, 99, 255, 0.15);
    border: 1px solid rgba(108, 99, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    color: #a5b4fc;
    margin: 0 auto 8px;
}

.step-text {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    max-width: 120px;
    line-height: 1.4;
}

.step-arrow {
    color: rgba(255, 255, 255, 0.2);
    font-size: 20px;
    margin-top: -28px;
}

.btn-download {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #6C63FF, #5a52d5);
    color: white;
    text-decoration: none;
    padding: 16px 36px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.2s;
    font-family: 'Inter', sans-serif;
    box-shadow: 0 4px 20px rgba(108, 99, 255, 0.4);
    margin-bottom: 12px;
}

.btn-download:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 32px rgba(108, 99, 255, 0.55);
}

.download-note {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.3);
    margin-top: 4px;
}

/* ===== Contact Section ===== */
.contact-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.contact-text {
    font-size: 17px;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.7;
    margin-bottom: 36px;
}

.contact-links {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    padding: 14px 24px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

.contact-link:hover {
    background: rgba(108, 99, 255, 0.1);
    border-color: rgba(108, 99, 255, 0.4);
    color: #c7d2fe;
    transform: translateY(-2px);
}

.contact-address {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.3);
    margin-bottom: 40px;
}

.contact-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 12px;
}

.back-to-top {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.4);
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Inter', sans-serif;
}

.back-to-top:hover {
    border-color: rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.7);
}

/* ===== Nebula Decorations ===== */
.nebula {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    z-index: 1;
    opacity: 0.35;
}

.nebula-hero   { width: 600px; height: 600px; background: radial-gradient(#6C63FF33, transparent 70%); top: -150px; right: -100px; }
.nebula-blue   { width: 500px; height: 500px; background: radial-gradient(#3B82F633, transparent 70%); bottom: -100px; left: -80px; }
.nebula-green  { width: 450px; height: 450px; background: radial-gradient(#00D4AA22, transparent 70%); top: 50%; right: -50px; transform: translateY(-50%); }
.nebula-purple { width: 500px; height: 500px; background: radial-gradient(#8B5CF633, transparent 70%); top: -100px; left: 50%; transform: translateX(-50%); }
.nebula-pink   { width: 450px; height: 450px; background: radial-gradient(#EC489922, transparent 70%); bottom: -100px; right: -50px; }

/* ===== Warp speed flash ===== */
.warp-flash {
    position: fixed;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(108,99,255,0.15) 0%, transparent 70%);
    z-index: 900;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.1s;
}

.warp-flash.active { opacity: 1; }

/* ===== Mobile Responsive ===== */
@media (max-width: 768px) {
    .topbar-nav { display: none; }
    .menu-burger { display: flex; }
    .btn-signin  { display: none; }

    .space-topbar { padding: 0 20px; }

    .section-content {
        padding: 80px 24px 24px;
        margin-top: 64px;
    }

    .section-title { font-size: 32px; }
    .section-subtitle { font-size: 15px; }

    .hero-title { font-size: 36px; }
    .hero-ctas { flex-direction: column; }
    .cta-primary, .cta-secondary { width: 100%; justify-content: center; }

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

    .about-stats { gap: 20px; justify-content: center; }
    .stat-divider { display: none; }

    .support-steps { gap: 8px; }
    .step-arrow { display: none; }

    .section-dots { display: none; }

    .btn-download { padding: 14px 24px; font-size: 14px; width: 100%; justify-content: center; }
}

@media (max-width: 480px) {
    .section-title { font-size: 26px; }
    .hero-title { font-size: 28px; }
}

/* ===== Mobile carousel arrows ===== */
.mobile-carousel-arrows {
    display: none; /* desktop: canvas arrows are used instead */
}

/* ===== Mobile — même expérience 3D, taille adaptée ===== */
@media (max-width: 768px) {
    .mobile-carousel-arrows {
        display: flex;
        position: fixed;
        bottom: 28px;
        left: 0;
        right: 0;
        justify-content: space-between;
        padding: 0 28px;
        z-index: 500;
        pointer-events: none;
    }
    .mobile-arrow-btn {
        pointer-events: all;
        width: 50px;
        height: 50px;
        border-radius: 50%;
        border: 1px solid rgba(220, 210, 255, 0.35);
        background: rgba(3, 8, 18, 0.75);
        color: rgba(220, 210, 255, 0.9);
        font-size: 24px;
        cursor: pointer;
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        display: flex;
        align-items: center;
        justify-content: center;
        transition: background 0.2s, border-color 0.2s;
        -webkit-tap-highlight-color: transparent;
    }
    .mobile-arrow-btn:active {
        background: rgba(108, 99, 255, 0.3);
        border-color: rgba(220, 210, 255, 0.7);
    }

    .card-3d-wrap {
        width: 88%;
    }
    .section-content {
        padding: 28px 20px 24px;
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
    }
    .carousel-arrow {
        display: flex;
        width: 38px;
        height: 38px;
        font-size: 22px;
    }
    .carousel-arrow-left  { left: 6px; }
    .carousel-arrow-right { right: 6px; }
}

/* ===== Apps catalogue page ===== */
.space-universe.apps-page {
    overflow-y: auto;
    position: fixed;
}

.apps-container {
    position: relative;
    z-index: 10;
    max-width: 1100px;
    margin: 0 auto;
    padding: 100px 32px 60px;
    min-height: 100vh;
}

.apps-hero {
    text-align: center;
    margin-bottom: 60px;
}

.apps-hero .hero-badge {
    margin-bottom: 20px;
}

.apps-hero .hero-title {
    margin-bottom: 16px;
}

.apps-lead {
    font-size: 17px;
    color: rgba(255, 255, 255, 0.5);
    max-width: 540px;
    margin: 0 auto;
    line-height: 1.6;
}

.apps-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 60px;
    max-width: 760px;
}

.app-tile {
    background: rgba(3, 8, 18, 0.72);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    animation: sectionLevitate 5s ease-in-out infinite;
}

.app-tile:nth-child(1) { animation-delay: 0s; }
.app-tile:nth-child(2) { animation-delay: 1.2s; }
.app-tile:nth-child(3) { animation-delay: 2.4s; }
.app-tile:nth-child(4) { animation-delay: 0.6s; }

.app-tile:hover {
    border-color: rgba(108, 99, 255, 0.35);
    box-shadow: 0 16px 60px rgba(108, 99, 255, 0.18);
}

.app-tile-header {
    display: flex;
    align-items: center;
    gap: 16px;
}

.app-icon-hex {
    position: relative;
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
}

.app-tile-name {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: #f1f5f9;
    letter-spacing: -0.01em;
}

.app-tile-url {
    font-size: 12px;
    color: #6C63FF;
    font-family: 'Courier New', monospace;
    margin-top: 3px;
    opacity: 0.9;
}

.app-tile-desc {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.7;
    flex: 1;
    margin: 0;
}

.app-tile-footer {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.app-tag {
    font-size: 11px;
    font-weight: 600;
    color: #64748b;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
    padding: 3px 10px;
    border-radius: 20px;
    letter-spacing: 0.02em;
}

.btn-demo {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #6C63FF, #5a52d5);
    color: white;
    text-decoration: none;
    padding: 9px 20px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    transition: all 0.2s;
    box-shadow: 0 4px 16px rgba(108, 99, 255, 0.3);
    white-space: nowrap;
}

.btn-demo:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(108, 99, 255, 0.5);
    color: white;
}

.apps-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 12px;
    flex-wrap: wrap;
    gap: 12px;
}

@media (max-width: 768px) {
    .apps-grid {
        grid-template-columns: 1fr;
    }
    .apps-container {
        padding: 88px 20px 40px;
    }
    .apps-hero .hero-title {
        font-size: 36px;
    }
    .space-universe.apps-page {
        position: relative;
        height: 100vh;
    }
}
