/* Reset CSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
}

body {
    font-family: 'Montserrat';
    background-color: #080812;
    color: #e2e8f0;
    line-height: 1.6;
    position: relative;
    margin: 0;
    opacity: 0;
    animation: fadeIn 0.8s ease-out forwards;
    overflow-x: hidden;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* floatParticles removed — bg canvas handles background animation */

header {
    background: rgba(8, 8, 20, 0.75);
    padding: 16px 0;
    box-shadow: 0 1px 0 rgba(124, 58, 237, 0.2);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(124, 58, 237, 0.15);
    /* position: relative needed so absolute children (lang switcher) are correctly placed */
    /* sticky already implies a positioning context */
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    margin: auto;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    user-select: none;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.menu-toggle .bar {
    width: 25px;
    height: 3px;
    background-color: #ffffff;
    margin: 4px 0;
    transition: all 0.3s;
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    cursor: default;
    user-select: none; /* empêche la sélection du texte */
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.3px;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #a78bfa;
}

.hero {
    height: 92vh;
    background: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 90vw;
    overflow: visible;
    opacity: 0;
    transform: translateY(60px);
    animation: contentFade 1.2s cubic-bezier(0.23, 1, 0.32, 1) forwards;
    animation-delay: 0.3s;
}

.hero h1 {
    font-size: clamp(2rem, 6vw, 5rem); /* Taille fluide, entre 2rem et 5rem */
    margin-bottom: 120px;
    white-space: nowrap;      /* Toujours sur une ligne */
    overflow: visible;        /* Pas de coupure */
    text-overflow: unset;     /* Pas de "..." */
    max-width: 100%;
    cursor: default;
    user-select: none; /* empêche la sélection du texte */
}

.hero p {
    font-size: 40px;
    margin-bottom: 180px;
    cursor: default;
    user-select: none; /* empêche la sélection du texte */
}

.cta {
    display: inline-block;
    width: 320px;
    text-align: center;
    padding: 18px 0;
    background: linear-gradient(135deg, #7c3aed 0%, #06b6d4 50%, #9f67ff 100%);
    background-size: 200% 200%;
    background-position: 0% 50%;
    color: #ffffff !important;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.5px;
    border-radius: 50px;
    transition: background-position 0.5s ease, transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 24px rgba(124, 58, 237, 0.35);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.cta:hover {
    background-position: 100% 50%;
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 40px rgba(124, 58, 237, 0.55);
    color: #ffffff !important;
}

.hero-buttons {
    display: flex;
    gap: 130px; /* <-- espace entre les boutons */
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 20px;
    cursor: default;
    user-select: none; /* empêche la sélection du texte */
}

.content {
    padding: 60px 20px;
    width: 80%;
    margin: auto;
    opacity: 0;
    transform: translateY(60px);
    animation: contentFade 1.2s cubic-bezier(0.23, 1, 0.32, 1) forwards;
    animation-delay: 0.5s;
}

@keyframes contentFade {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

footer {
    background: rgba(8, 8, 20, 0.85);
    backdrop-filter: blur(12px);
    text-align: center;
    padding: 24px 0;
    width: 100%;
    border-top: 1px solid rgba(124, 58, 237, 0.15);
    pointer-events: none;
}

footer p {
    position: relative;
    margin: 0;
    color: #64748b;
    font-size: 13px;
    letter-spacing: 0.3px;
}

/* Responsive styles */
@media (max-width: 768px) {
    nav {
        justify-content: space-between;
    }

    .nav-links {
        position: absolute;
        right: 0;
        height: 100vh;
        top: 0;
        background: rgba(8, 8, 20, 0.97);
        backdrop-filter: blur(24px);
        flex-direction: column;
        align-items: center;
        width: 70%;
        transform: translateX(100%);
        transition: transform 0.5s ease-in-out;
        z-index: 999;
        border-left: 1px solid rgba(124, 58, 237, 0.2);
    }

    .nav-links li {
        margin: 20px 0;
    }

    .menu-toggle {
        display: flex;
    }

    .nav-links.active {
        transform: translateX(0);
    }

    .hero h1 {
        font-size: 12vw; /* Ajuste encore plus la taille pour les mobiles */
        cursor: default;
        user-select: none; /* empêche la sélection du texte */
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 20px;
    }

    .nav-links a {
        font-size: 16px;
    }
}

@media (max-width: 1024px) {
    .hero h1 {
        font-size: 10vw; /* Un peu plus grand pour les écrans moyens */
    }
}

.logo-img {
    width: 30px;
    height: 30px;
    margin-right: 10px;
    vertical-align: middle;
}

/* === Bloc about stylisé === */
.about {
    position: relative;
    padding: 100px 20px 140px;
    z-index: 1;
}

.about::before {
    content: none !important;
    display: none !important;
}

.about-container {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: auto;
    padding: 60px 40px;
    background: rgba(12, 8, 32, 0.65);
    border-radius: 24px;
    box-shadow: 0 0 60px rgba(124, 58, 237, 0.12), inset 0 1px 0 rgba(255,255,255,0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(124, 58, 237, 0.2);
}

.section-title {
    display: inline-block;
    cursor: default;
    user-select: none;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 10px;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #a78bfa, #22d3ee);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 36px;
    height: 2px;
    background: linear-gradient(90deg, #7c3aed, #06b6d4);
    box-shadow: 0 0 8px rgba(124, 58, 237, 0.6);
    transition: width 0.3s ease;
}

.section-title:hover {
    letter-spacing: 0.5px;
}

.section-title:hover::after {
    width: 100%;
}

/* === Paragraphes + animation === */
.about-block p {
    font-size: 18px;
    line-height: 1.8;
    color: #ffffff;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 1s ease-out forwards;
    position: relative;
    margin-bottom: 30px;
}

.fade-in-text.delay-1 { animation-delay: 0.3s; }
.fade-in-text.delay-2 { animation-delay: 0.6s; }
.fade-in-text.delay-3 { animation-delay: 0.9s; }
.fade-in-text.delay-4 { animation-delay: 1.2s; }
.fade-in-text.delay-5 { animation-delay: 1.5s; }

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 0;
    /* width/height controlled exclusively by JS to avoid CSS stretching */
}

.nav-links a.active {
    color: #a78bfa;
    position: relative;
    transition: color 0.3s ease;
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0%;
    height: 2px;
    background: linear-gradient(90deg, #7c3aed, #06b6d4);
    box-shadow: 0 0 8px rgba(124, 58, 237, 0.6);
    animation: underlineExpand 0.4s ease forwards;
}

@keyframes underlineExpand {
    to {
        width: 100%;
    }
}

html {
    scroll-behavior: smooth;
  }  

  .software-grid {
    display: flex;
    flex-wrap: wrap;
    row-gap: 4rem;  /* Espacement vertical entre les cartes */
    column-gap: 8rem;  /* Espacement horizontal entre les cartes */
    justify-content: center;
    margin-bottom: 100px;
}

.software-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-radius: 24px;
    background: rgba(12, 8, 32, 0.65);
    border: 1px solid rgba(124, 58, 237, 0.2);
    padding: 2rem;
    max-width: 900px;
    width: 100%;
    box-shadow: 0 0 40px rgba(124, 58, 237, 0.1), inset 0 1px 0 rgba(255,255,255,0.04);
    backdrop-filter: blur(20px);
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
    min-height: 350px;
}

.software-card:hover {
    box-shadow: 0 0 60px rgba(124, 58, 237, 0.25), 0 0 0 1px rgba(124, 58, 237, 0.4);
    border-color: rgba(124, 58, 237, 0.4);
}

.software-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Bloc nom + version */
.software-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    pointer-events: none;
    user-select: none;
}

/* Titre + version */
.software-info h3 {
    font-size: 1.8rem;
    margin: 0;
    font-weight: 700;
}

.software-icon {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
    pointer-events: none;
    user-select: none;
}

.version {
    font-size: 1rem;
    color: #555;
    margin-top: 0.25rem;
    pointer-events: none;
    user-select: none;
}

/* Date de mise à jour à droite */
.update-date {
    margin-left: auto;
    font-size: 0.9rem;
    color: #666;
    white-space: nowrap;
    pointer-events: none;
    user-select: none;
}

.update-date {
    font-size: 0.8rem;
    color: #666;
}

.software-body {
    margin-top: 1rem;
}

.description {
    margin-bottom: 1rem;
}

.screenshot {
    width: 100%;
    height: auto;
    border: 1px solid #ddd;
    border-radius: 8px;
    pointer-events: none;
    user-select: none;
}

.software-footer {
    margin-top: 1.5rem;
    flex-grow: 1; /* Permet de remplir l'espace vertical restant */
    display: flex;
    flex-direction: column; /* Organise les boutons en colonne */
    justify-content: flex-end; /* Les boutons sont collés en bas */
}

/* Boutons plus gros et centrés */
.software-footer .buttons {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-top: 1rem;
}

.btn {
    text-decoration: none;
    background: linear-gradient(135deg, #7c3aed, #06b6d4);
    color: white;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    width: 180px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    user-select: none;
    box-shadow: 0 4px 16px rgba(124, 58, 237, 0.25);
}

.btn:hover {
    background: linear-gradient(135deg, #9f67ff, #22d3ee);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(124, 58, 237, 0.4);
}

/* Style de la popup */
.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(4, 4, 12, 0.7);
    backdrop-filter: blur(8px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 999;
    user-select: none;
}

/* Style du contenu de la popup */
.popup-content {
    background: rgba(12, 8, 32, 0.9);
    border: 1px solid rgba(124, 58, 237, 0.3);
    border-radius: 24px;
    padding: 2.5rem;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 0 60px rgba(124, 58, 237, 0.2), inset 0 1px 0 rgba(255,255,255,0.05);
    text-align: center;
    transition: box-shadow 0.3s ease;
}

.popup-content:hover {
    box-shadow: 0 0 80px rgba(124, 58, 237, 0.35), inset 0 1px 0 rgba(255,255,255,0.05);
}

.popup-content h3 {
    font-size: 1.6rem;
    background: linear-gradient(135deg, #a78bfa, #22d3ee);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    margin-bottom: 1rem;
}

.popup-content p {
    font-size: 1rem;
    color: #94a3b8;
    margin-bottom: 1.5rem;
}

.popup-content .btn {
    background: linear-gradient(135deg, #7c3aed, #06b6d4);
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    border: none;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    width: auto;
}

.popup-content .btn.close {
    margin-top: 20px;
    display: inline-flex;
    width: auto;
    margin-left: auto;
    margin-right: auto;
}

.popup-content .btn:hover {
    background: linear-gradient(135deg, #9f67ff, #22d3ee);
    transform: translateY(-2px);
}

/* Affichage de la popup quand la checkbox est cochée */
#popupToggle:checked + .popup {
    display: flex;
}

/* === Bloc suite stylisé === */
.suite {
    position: relative;
    padding: 100px 20px 140px;
    z-index: 1;
}

.suite::before {
    content: none !important;
    display: none !important;
}

.suite-container {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: auto;
    padding: 60px 40px;
    background: rgba(12, 8, 32, 0.65);
    border-radius: 24px;
    box-shadow: 0 0 60px rgba(124, 58, 237, 0.12), inset 0 1px 0 rgba(255,255,255,0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(124, 58, 237, 0.2);
}

/* === Paragraphes + animation === */
.suite-block p {
    font-size: 18px;
    line-height: 1.8;
    color: #ffffff;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 1s ease-out forwards;
    position: relative;
    margin-bottom: 30px;
}

/* ===== LANGUAGE SWITCHER DROPDOWN ===== */
.language-switcher {
    position: fixed;
    top: 14px;
    right: 20px;
    z-index: 10000;
    user-select: none;
}

.lang-selected {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 6px 12px 6px 8px;
    border-radius: 50px;
    background: rgba(12, 8, 32, 0.85);
    border: 1px solid rgba(124, 58, 237, 0.3);
    backdrop-filter: blur(12px);
    transition: all 0.2s ease;
    min-width: 90px;
}

.lang-selected:hover {
    border-color: rgba(124, 58, 237, 0.6);
    background: rgba(20, 12, 45, 0.95);
}

.lang-selected .flag-img {
    width: 22px;
    height: 15px;
    border-radius: 3px;
    object-fit: cover;
}

.lang-selected .lang-code {
    font-size: 12px;
    font-weight: 600;
    color: #a78bfa;
    letter-spacing: 0.5px;
    flex: 1;
}

.lang-selected .lang-arrow {
    font-size: 10px;
    color: #64748b;
    transition: transform 0.2s ease;
}

.language-switcher.open .lang-arrow {
    transform: rotate(180deg);
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: rgba(10, 6, 28, 0.97);
    border: 1px solid rgba(124, 58, 237, 0.25);
    border-radius: 16px;
    backdrop-filter: blur(20px);
    padding: 6px;
    min-width: 160px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: all 0.2s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 0 16px 48px rgba(0,0,0,0.5), 0 0 0 1px rgba(124,58,237,0.1);
    max-height: 380px;
    overflow-y: auto;
}

.lang-dropdown::-webkit-scrollbar { width: 4px; }
.lang-dropdown::-webkit-scrollbar-track { background: transparent; }
.lang-dropdown::-webkit-scrollbar-thumb { background: rgba(124,58,237,0.3); border-radius: 4px; }

.language-switcher.open .lang-dropdown {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.15s ease;
    font-size: 13px;
    font-weight: 500;
    color: #cbd5e1;
}

.lang-option:hover {
    background: rgba(124, 58, 237, 0.15);
    color: #fff;
}

.lang-option.active {
    background: rgba(124, 58, 237, 0.2);
    color: #a78bfa;
}

.lang-option .flag-img {
    width: 22px;
    height: 15px;
    border-radius: 3px;
    object-fit: cover;
    flex-shrink: 0;
}

/* ===== ANIMATED LIQUID BACKGROUND CANVAS ===== */
#bg-canvas {
    position: fixed;
    top: 0; left: 0;
    pointer-events: none;
    z-index: -1;
}

.order-btn {
    display: inline-block;
    width: 340px;
    text-align: center;
    padding: 18px 0;
    background: linear-gradient(135deg, #7c3aed, #06b6d4);
    color: #ffffff !important;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.5px;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 24px rgba(124, 58, 237, 0.35);
    user-select: none;
    margin-top: 50px;
}

.order-btn:hover {
    background: linear-gradient(135deg, #9f67ff, #22d3ee);
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(124, 58, 237, 0.5);
}

.btn-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 30px; /* optionnel */
}

.form-section {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: auto;
    padding: 60px 40px;
    background: rgba(12, 8, 32, 0.65);
    border-radius: 24px;
    box-shadow: 0 0 60px rgba(124, 58, 237, 0.12), inset 0 1px 0 rgba(255,255,255,0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(124, 58, 237, 0.2);
  }
  
  .form-section h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
  }
  
  .form-section p {
    margin-bottom: 30px;
    font-size: 1.2rem;
    color: #ccc;
  }
  
  #request-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }
  
  .form-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  
  /* Champs texte, email, date, file et textarea */
  input[type="text"],
  input[type="email"],
  input[type="date"],
  input[type="file"],
  textarea {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid rgba(124, 58, 237, 0.2);
    border-radius: 12px;
    background: rgba(10, 6, 28, 0.7);
    color: #e2e8f0;
    font-size: 0.95rem;
    font-family: 'Montserrat';
    transition: all 0.2s ease;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  }
  
  input:focus,
  textarea:focus {
    outline: none;
    background: rgba(15, 10, 35, 0.9);
    border-color: rgba(124, 58, 237, 0.6);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
  }
  
  /* Placeholder plus doux */
  input::placeholder,
  textarea::placeholder {
    color: #475569;
  }
  
  /* Zone de texte */
  textarea {
    min-height: 150px;
    resize: vertical;
  }
  
  /* Bouton de soumission stylé comme les autres boutons du site */
  .submit-button {
    width: 100%;
    padding: 18px 0;
    background: linear-gradient(135deg, #7c3aed, #06b6d4);
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    border: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 24px rgba(124, 58, 237, 0.35);
    cursor: pointer;
    text-align: center;
  }
  
  .submit-button:hover {
    background: linear-gradient(135deg, #9f67ff, #22d3ee);
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(124, 58, 237, 0.5);
  }
  
  /* Input file : masquer texte par défaut, remplacer par bouton custom */
  input[type="file"] {
    padding: 12px 16px;
    background: rgba(30, 30, 30, 0.8);
    color: white;
    font-size: 1rem;
    cursor: pointer;
  }
  
  input[type="file"]::file-selector-button {
    background: #693adc;
    border: none;
    border-radius: 20px;
    padding: 10px 20px;
    color: #1e1e1e;
    font-weight: 500;
    cursor: pointer;
    margin-right: 12px;
    transition: background 0.3s ease;
  }
  
  input[type="file"]::file-selector-button:hover {
    background: #7b50e3;
  }
  
  main {
    padding-top: 100px;
    padding-bottom: 120px;
  }

  .file-list {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
  }
  
  .file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255,255,255,0.05);
    border-radius: 6px;
    padding: 5px 10px;
    width: fit-content;
    max-width: 100%;
    transition: background 0.3s;
  }
  
  .file-item:hover {
    background: rgba(255,255,255,0.1);
  }
  
  .file-name {
    color: #ccc;
    font-size: 14px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 200px;
  }
  
  .delete-icon {
    opacity: 0;
    margin-left: 10px;
    cursor: pointer;
    transition: opacity 0.3s, transform 0.3s;
    transform: translateX(5px);
  }
  
  .file-item:hover .delete-icon {
    opacity: 1;
    transform: translateX(0);
  }
  
  .delete-icon img {
    width: 18px;
    height: 18px;
  }  

/* Espace horizontal entre Nom et Email */
#contact-form .form-group:first-child {
    flex-direction: row;
    gap: 20px;
  }
  
  /* Le champ "Objet" a du margin-top pour être séparé de Email */
  #contact-subject {
    margin-top: 20px;
  }
  
  /* Le champ "Message" a aussi du margin-top pour être séparé de Objet */
  #contact-message {
    margin-top: 20px;
    margin-bottom: 20px; /* espace vertical entre Message et Fichiers joints */
  }

  #contact-name {
    margin-bottom: 20px; /* espace entre Nom et Email */
  }

/* ================================================================
   SCROLL REVEAL
================================================================ */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s cubic-bezier(0.23, 1, 0.32, 1),
                transform 0.7s cubic-bezier(0.23, 1, 0.32, 1);
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Variant: slide from left */
.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.7s cubic-bezier(0.23, 1, 0.32, 1),
                transform 0.7s cubic-bezier(0.23, 1, 0.32, 1);
}
.reveal-left.revealed { opacity: 1; transform: translateX(0); }

/* Variant: scale up */
.reveal-scale {
    opacity: 0;
    transform: scale(0.92);
    transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.reveal-scale.revealed { opacity: 1; transform: scale(1); }

/* ================================================================
   HERO CONTENT — override to let JS typewriter work
================================================================ */
.hero-content p {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
}

/* ================================================================
   HERO H1 GLOW PULSE
================================================================ */
.hero h1 {
    animation: heroGlow 4s ease-in-out infinite alternate;
}
@keyframes heroGlow {
    0%   { text-shadow: 0 0 20px rgba(124,58,237,0.0); }
    100% { text-shadow: 0 0 40px rgba(124,58,237,0.5), 0 0 80px rgba(6,182,212,0.2); }
}

/* ================================================================
   ABOUT / SUITE BLOCKS — enhanced hover (tilt handled by JS)
================================================================ */
.about-block, .suite-block {
    padding: 28px 32px;
    border-radius: 18px;
    border: 1px solid rgba(124,58,237,0.1);
    background: rgba(10,6,28,0.3);
    transition: border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
    will-change: transform;
    cursor: default;
}

.about-block:hover, .suite-block:hover {
    border-color: rgba(124,58,237,0.35);
    background: rgba(16,8,40,0.5);
    box-shadow: 0 8px 40px rgba(124,58,237,0.12);
}

/* ================================================================
   NAV LINK — hover underline slide
================================================================ */
.nav-links a {
    position: relative;
}
.nav-links a::after {
    content: '';
    position: absolute;
    left: 0; bottom: -3px;
    width: 0; height: 2px;
    background: linear-gradient(90deg, #7c3aed, #06b6d4);
    border-radius: 2px;
    transition: width 0.3s ease;
}
.nav-links a:hover::after { width: 100%; }

/* ================================================================
   CTA BUTTONS — shimmer sweep on hover
================================================================ */
.cta, .order-btn, .btn, .submit-button {
    position: relative;
    overflow: hidden;
}
.cta::after, .order-btn::after {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 60%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transform: skewX(-20deg);
    transition: left 0.5s ease;
}
.cta:hover::after, .order-btn:hover::after { left: 150%; }

/* ================================================================
   SOFTWARE CARD — inner glow line on hover
================================================================ */
.software-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #7c3aed, #06b6d4, transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: 24px 24px 0 0;
}
.software-card { position: relative; }
.software-card:hover::before { opacity: 1; }

/* ================================================================
   SECTION TITLE — color shift on hover
================================================================ */
.section-title {
    transition: letter-spacing 0.3s ease, filter 0.3s ease;
}
.section-title:hover {
    filter: brightness(1.3);
    letter-spacing: 1px;
}

/* ================================================================
   RIPPLE KEYFRAME
================================================================ */
@keyframes ripple {
    to { transform: scale(2.5); opacity: 0; }
}

/* ================================================================
   FOOTER LINKS hover
================================================================ */
footer a {
    color: #64748b;
    text-decoration: none;
    transition: color 0.2s;
}
footer a:hover { color: #a78bfa; }

/* ================================================================
   HEADER TRANSITION for scroll shadow
================================================================ */
header {
    transition: box-shadow 0.4s ease;
}

/* ================================================================
   LOADING SKELETON for softwares page
================================================================ */
.sw-loading {
    text-align: center;
    padding: 60px 20px;
    color: #475569;
    font-size: 14px;
    letter-spacing: 0.5px;
}

/* ================================================================
   H1 WORD-BY-WORD REVEAL (Apple style)
================================================================ */
.h1-word {
    display: inline-block;
    opacity: 0;
    transform: translateY(28px);
    animation: wordReveal 0.65s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}
@keyframes wordReveal {
    to { opacity: 1; transform: translateY(0); }
}

/* ================================================================
   SCROLL PROGRESS BAR
================================================================ */
#scroll-progress {
    position: fixed;
    top: 0; left: 0;
    height: 2px;
    width: 0%;
    background: linear-gradient(90deg, #7c3aed, #06b6d4);
    z-index: 99999;
    transition: width 0.08s linear;
    box-shadow: 0 0 10px rgba(124, 58, 237, 0.7);
    pointer-events: none;
}

/* ================================================================
   CURSOR GLOW (desktop)
================================================================ */
#cursor-glow {
    position: fixed;
    top: 0; left: 0;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(124,58,237,0.09) 0%, rgba(6,182,212,0.04) 40%, transparent 70%);
    pointer-events: none;
    z-index: 2;
    will-change: transform;
}

/* ================================================================
   HERO H1 — remove old margin-bottom that pushed sub title far
================================================================ */
.hero h1 {
    margin-bottom: 24px !important;
}

/* ================================================================
   HERO CONTENT — reveal override (JS adds class)
================================================================ */
.hero-content.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.9s cubic-bezier(0.23, 1, 0.32, 1),
                transform 0.9s cubic-bezier(0.23, 1, 0.32, 1);
}
.hero-content.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ================================================================
   ABOUT / SUITE BLOCKS — ensure relative for tilt
================================================================ */
.about-block, .suite-block {
    transition: border-color 0.3s ease, background 0.3s ease,
                box-shadow 0.3s ease;
    will-change: transform;
}

/* ================================================================
   SOFTWARE CARD — scan-line shimmer on hover
================================================================ */
.software-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 24px;
    background: linear-gradient(
        135deg,
        rgba(124,58,237,0)    0%,
        rgba(124,58,237,0.06) 40%,
        rgba(6,182,212,0.06)  60%,
        rgba(6,182,212,0)     100%
    );
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}
.software-card:hover::after { opacity: 1; }

/* ================================================================
   NAV — ensure relative so ::after underline works
================================================================ */
nav { position: relative; }

/* ================================================================
   MAGNETIC BUTTON — prevent layout shift during transform
================================================================ */
.cta, .order-btn {
    will-change: transform;
}

/* ================================================================
   BUTTON TEXT — always on top of pseudo-elements
================================================================ */
.cta span, .btn span, .order-btn span {
    position: relative;
    z-index: 2;
}

/* ================================================================
   HERO SUBTITLE — no initial animation (typewriter handles it)
================================================================ */
.hero-content p {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    min-height: 1.4em;  /* prevents layout jump while typing */
}

/* ================================================================
   HERO BUTTONS — fix gap on mobile
================================================================ */
@media (max-width: 600px) {
    .hero-buttons { gap: 20px !important; }
    .cta { width: 260px !important; }
}

/* ================================================================
   FORM — step indicators for order form
================================================================ */
.form-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.form-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    position: relative;
    flex: 1;
    max-width: 140px;
    cursor: default;
}

.form-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 18px;
    left: calc(50% + 18px);
    width: calc(100% - 36px);
    height: 2px;
    background: rgba(124, 58, 237, 0.2);
    transition: background 0.4s ease;
}

.form-step.done:not(:last-child)::after {
    background: linear-gradient(90deg, #7c3aed, #06b6d4);
}

.step-dot {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid rgba(124, 58, 237, 0.3);
    background: rgba(12, 8, 32, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    color: #64748b;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.form-step.active .step-dot {
    border-color: #7c3aed;
    background: rgba(124, 58, 237, 0.2);
    color: #a78bfa;
    box-shadow: 0 0 16px rgba(124, 58, 237, 0.4);
}

.form-step.done .step-dot {
    border-color: #06b6d4;
    background: rgba(6, 182, 212, 0.15);
    color: #22d3ee;
}

.step-label {
    font-size: 10px;
    font-weight: 600;
    color: #475569;
    text-align: center;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.form-step.active .step-label { color: #a78bfa; }
.form-step.done .step-label   { color: #22d3ee; }

/* Step panels */
.form-panel {
    display: none;
    animation: panelIn 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}
.form-panel.active { display: block; }

@keyframes panelIn {
    from { opacity: 0; transform: translateX(20px); }
    to   { opacity: 1; transform: translateX(0); }
}

/* Step nav buttons */
.step-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 32px;
    gap: 12px;
}

.btn-step {
    padding: 14px 28px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    font-family: inherit;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}

.btn-step-next {
    background: linear-gradient(135deg, #7c3aed, #06b6d4);
    color: #fff;
    box-shadow: 0 4px 20px rgba(124, 58, 237, 0.35);
}
.btn-step-next:hover {
    box-shadow: 0 8px 30px rgba(124, 58, 237, 0.5);
    transform: translateY(-2px);
}

.btn-step-prev {
    background: rgba(124, 58, 237, 0.1);
    color: #a78bfa;
    border: 1px solid rgba(124, 58, 237, 0.25);
}
.btn-step-prev:hover {
    background: rgba(124, 58, 237, 0.18);
}

/* Form labels inline style */
.field-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: #64748b;
    margin-bottom: 7px;
}

.field-hint {
    font-size: 12px;
    color: #475569;
    margin-top: 5px;
    font-style: italic;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 20px;
}

.form-field {
    margin-bottom: 20px;
}

@media (max-width: 600px) {
    .form-row { grid-template-columns: 1fr; }
    .form-steps { gap: 8px; }
}

/* Radio / checkbox group */
.radio-group, .checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 4px;
}

.radio-pill, .check-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    border-radius: 50px;
    border: 1px solid rgba(124, 58, 237, 0.25);
    background: rgba(10, 6, 28, 0.6);
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    color: #94a3b8;
    transition: all 0.2s ease;
    user-select: none;
}

.radio-pill:hover, .check-pill:hover {
    border-color: rgba(124, 58, 237, 0.5);
    color: #c4b5fd;
}

.radio-pill input, .check-pill input {
    display: none;
}

.radio-pill.selected, .check-pill.selected {
    background: rgba(124, 58, 237, 0.2);
    border-color: #7c3aed;
    color: #a78bfa;
    box-shadow: 0 0 12px rgba(124, 58, 237, 0.2);
}

/* Range slider */
input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    background: rgba(124, 58, 237, 0.2);
    border-radius: 10px;
    outline: none;
    border: none;
    box-shadow: none;
    padding: 0;
}
input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, #7c3aed, #06b6d4);
    cursor: pointer;
    box-shadow: 0 0 10px rgba(124, 58, 237, 0.5);
}
.range-labels {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: #475569;
    margin-top: 6px;
}
.range-value {
    text-align: center;
    font-size: 18px;
    font-weight: 700;
    color: #a78bfa;
    margin-top: 6px;
}

/* Select styled */
select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid rgba(124, 58, 237, 0.2);
    border-radius: 12px;
    background: rgba(10, 6, 28, 0.7);
    color: #e2e8f0;
    font-size: 0.95rem;
    font-family: 'Montserrat', sans-serif;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2364748b' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    cursor: pointer;
    transition: border-color 0.2s;
}
select:focus {
    outline: none;
    border-color: rgba(124, 58, 237, 0.6);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.12);
}
select option { background: #0d0b20; color: #e2e8f0; }

/* Progress fill on range */
input[type="range"] {
    background: linear-gradient(
        to right,
        rgba(124,58,237,0.7) 0%,
        rgba(124,58,237,0.7) var(--fill, 50%),
        rgba(124,58,237,0.15) var(--fill, 50%),
        rgba(124,58,237,0.15) 100%
    );
}

/* ================================================================
   FLAG IMAGES — always correct colors regardless of dark mode
   color-scheme: only light + forced-color-adjust: none blocks
   Chrome Force Dark from altering flag images
================================================================ */
img.flag-img,
img.country-flag-img,
.lang-option img,
.lang-selected img,
.country-option img {
    filter: none !important;
    -webkit-filter: none !important;
    color-scheme: only light;
    forced-color-adjust: none;
}

/* ================================================================
   CUSTOM COUNTRY DROPDOWN
================================================================ */
.country-select {
    position: relative;
    user-select: none;
}

.country-selected {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border: 1px solid rgba(124,58,237,0.2);
    border-radius: 12px;
    background: rgba(10,6,28,0.7);
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
    font-size: 0.95rem;
    color: #e2e8f0;
}

.country-selected:hover,
.country-select.open .country-selected {
    border-color: rgba(124,58,237,0.6);
    box-shadow: 0 0 0 3px rgba(124,58,237,0.12);
}

.country-placeholder { color: #475569; flex:1; }
.country-flag-img    { width:22px; height:15px; border-radius:3px; object-fit:cover; flex-shrink:0; }
.country-name-sel    { flex:1; }
.country-arrow       { color:#64748b; font-size:10px; margin-left:auto; transition:transform 0.2s; }
.country-select.open .country-arrow { transform:rotate(180deg); }

.country-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0; right: 0;
    background: rgba(10,6,28,0.98);
    border: 1px solid rgba(124,58,237,0.25);
    border-radius: 14px;
    backdrop-filter: blur(20px);
    padding: 6px;
    max-height: 260px;
    overflow-y: auto;
    z-index: 5000;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-6px);
    transition: all 0.2s cubic-bezier(0.23,1,0.32,1);
    box-shadow: 0 16px 48px rgba(0,0,0,0.5);
}

.country-select.open .country-dropdown {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
}

.country-dropdown::-webkit-scrollbar { width:4px; }
.country-dropdown::-webkit-scrollbar-thumb { background:rgba(124,58,237,0.3); border-radius:4px; }

.country-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    color: #cbd5e1;
    transition: background 0.15s;
}

.country-option:hover   { background: rgba(124,58,237,0.15); color:#fff; }
.country-option.selected{ background: rgba(124,58,237,0.22); color:#a78bfa; }
.country-option .country-flag-img { pointer-events:none; }

/* ================================================================
   FORM VALIDATION — error shake
================================================================ */
@keyframes shake {
    0%,100%{ transform:translateX(0); }
    20%    { transform:translateX(-6px); }
    40%    { transform:translateX(6px); }
    60%    { transform:translateX(-4px); }
    80%    { transform:translateX(4px); }
}
.field-error { animation: shake 0.35s ease; }

/* ================================================================
   SUCCESS POPUP
================================================================ */
.success-overlay {
    position: fixed;
    inset: 0;
    background: rgba(4,4,12,0.85);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}
.success-overlay.show {
    opacity: 1;
    pointer-events: all;
}
.success-box {
    background: rgba(12,8,32,0.95);
    border: 1px solid rgba(124,58,237,0.35);
    border-radius: 28px;
    padding: 48px 40px;
    max-width: 480px;
    width: 90%;
    text-align: center;
    box-shadow: 0 0 80px rgba(124,58,237,0.2), inset 0 1px 0 rgba(255,255,255,0.05);
    transform: scale(0.88) translateY(20px);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.success-overlay.show .success-box {
    transform: scale(1) translateY(0);
}
.success-icon {
    font-size: 56px;
    margin-bottom: 20px;
    display: block;
    animation: successPop 0.5s cubic-bezier(0.34,1.56,0.64,1) 0.2s both;
}
@keyframes successPop {
    from { transform: scale(0); opacity: 0; }
    to   { transform: scale(1); opacity: 1; }
}
.success-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #a78bfa, #22d3ee);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.success-msg {
    font-size: 14px;
    color: #94a3b8;
    line-height: 1.7;
    margin-bottom: 10px;
}
.success-id {
    font-size: 12px;
    color: #475569;
    font-family: monospace;
    background: rgba(124,58,237,0.1);
    border: 1px solid rgba(124,58,237,0.2);
    border-radius: 8px;
    padding: 6px 14px;
    display: inline-block;
    margin-bottom: 28px;
    letter-spacing: 0.5px;
}
.success-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: linear-gradient(135deg, #7c3aed, #06b6d4);
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(124,58,237,0.35);
}
.success-btn:hover {
    box-shadow: 0 8px 32px rgba(124,58,237,0.5);
    transform: translateY(-2px);
}

/* ================================================================
   SUCCESS / ERROR POPUP (forms)
================================================================ */
#form-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(4, 4, 14, 0.75);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}

#form-popup-overlay.show {
    opacity: 1;
    pointer-events: all;
}

.form-popup-box {
    background: rgba(12, 8, 32, 0.95);
    border: 1px solid rgba(124, 58, 237, 0.35);
    border-radius: 28px;
    padding: 48px 44px 40px;
    max-width: 480px;
    width: 90%;
    text-align: center;
    box-shadow: 0 0 80px rgba(124, 58, 237, 0.2), inset 0 1px 0 rgba(255,255,255,0.06);
    transform: translateY(24px) scale(0.96);
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

#form-popup-overlay.show .form-popup-box {
    transform: translateY(0) scale(1);
}

.form-popup-icon {
    font-size: 56px;
    margin-bottom: 20px;
    display: block;
    animation: popupIconBounce 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s both;
}

@keyframes popupIconBounce {
    from { transform: scale(0.4) rotate(-15deg); opacity: 0; }
    to   { transform: scale(1)   rotate(0deg);   opacity: 1; }
}

.form-popup-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #a78bfa, #22d3ee);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.form-popup-msg {
    font-size: 14px;
    color: #94a3b8;
    line-height: 1.7;
    margin-bottom: 32px;
}

.form-popup-id {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #06b6d4;
    background: rgba(6,182,212,0.1);
    border: 1px solid rgba(6,182,212,0.25);
    border-radius: 8px;
    padding: 4px 12px;
    margin-bottom: 24px;
}

.form-popup-btn {
    display: inline-block;
    padding: 14px 36px;
    background: linear-gradient(135deg, #7c3aed, #06b6d4);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    font-family: inherit;
    text-decoration: none;
    transition: all 0.25s ease;
    box-shadow: 0 4px 20px rgba(124,58,237,0.35);
}

.form-popup-btn:hover {
    background: linear-gradient(135deg, #9f67ff, #22d3ee);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(124,58,237,0.5);
}

/* ================================================================
   FLAG WRAP — isolates flag images from browser Force Dark Mode
   color-scheme: only light + forced-color-adjust: none + isolate
   block Chrome's Force Dark algorithm from targeting child images
================================================================ */
.flag-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color-scheme: only light;
    forced-color-adjust: none;
    isolation: isolate;
    line-height: 0;
    border-radius: 3px;
    overflow: hidden;
    flex-shrink: 0;
}

.flag-wrap img {
    display: block;
    color-scheme: only light;
    forced-color-adjust: none;
    filter: none !important;
    -webkit-filter: none !important;
    mix-blend-mode: normal;
    isolation: isolate;
}