/* CSS Variables */
:root {
    --primary: #3aa9ff;
    --primary-rgb: 58, 169, 255;
    --bg-dark: #050507;
    --bg-surface: #0a0a0f;
    --text-primary: #ffffff;
    --text-secondary: #d4d4d8;
    --text-muted: #a1a1aa;
    --border: rgba(255, 255, 255, 0.05);
    --border-light: rgba(255, 255, 255, 0.1);
    --grid-color: rgba(255, 255, 255, 0.03);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --font-sans: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background: var(--bg-dark);
    color: var(--text-primary);
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
}

/* ===================================
   QUADRILLAGE EN ARRIÈRE-PLAN - GLOBAL
   =================================== */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    background-size: 40px 40px;
    background-image: 
        linear-gradient(to right, var(--grid-color) 1px, transparent 1px),
        linear-gradient(to bottom, var(--grid-color) 1px, transparent 1px);
    mask-image: radial-gradient(circle at center, black 40%, transparent 100%);
    -webkit-mask-image: radial-gradient(circle at center, black 40%, transparent 100%);
}

/* Spotlight Effect en haut */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 800px;
    background: radial-gradient(circle at top center, rgba(var(--primary-rgb), 0.15), transparent 50%);
    z-index: -1;
    pointer-events: none;
}

/* Navigation - ENCORE PLUS GRANDE (comme CSINT) */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(5, 5, 7, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    height: 80px; /* Augmenté de 70px à 80px */
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(5, 5, 7, 0.95);
    border-bottom-color: var(--border-light);
}

.navbar-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar-logo {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    text-decoration: none;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.navbar-logo:hover {
    opacity: 0.9;
}

.logo-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px; /* Carré arrondi */
    background: linear-gradient(135deg, var(--primary) 0%, #5bb8ff 100%);
    box-shadow: 0 0 20px rgba(var(--primary-rgb), 0.3);
    padding: 6px; /* Réduit de 8px à 6px pour logo plus grand */
    overflow: hidden;
}

.logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Changé de contain à cover pour remplir l'espace */
    filter: brightness(1.2);
}

.logo-icon svg {
    width: 28px; /* Augmenté de 24px à 28px */
    height: 28px;
    color: white;
}

.logo-text {
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 1.4rem; /* Augmenté de 1.25rem à 1.4rem */
    color: var(--text-primary);
    letter-spacing: 0.5px;
}

.navbar-menu {
    display: flex;
    align-items: center;
    gap: 2rem; /* Augmenté de 1.5rem à 2rem */
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.nav-link {
    color: var(--text-secondary);
    font-size: 0.95rem; /* Augmenté de 0.875rem à 0.95rem */
    font-weight: 500;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.75px;
    transition: color 0.2s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--text-primary);
}

/* Underline animation pour nav-link */
.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -6px;
    left: 0;
    background-color: var(--primary);
    transition: width 0.3s ease;
}

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

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.login-link {
    color: var(--text-secondary);
    font-size: 0.875rem;
    text-decoration: none;
    transition: color 0.2s ease;
    font-weight: 500;
}

.login-link:hover {
    color: var(--text-primary);
}

.btn-get-started {
    background: none;
    color: var(--primary);
    padding: 10px 20px; /* Augmenté de 8px 16px */
    border-radius: var(--radius-sm);
    font-size: 0.95rem; /* Augmenté de 0.875rem */
    font-weight: 600;
    text-decoration: none;
    border: 1.5px solid var(--primary);
    transition: all 0.3s ease;
}

.btn-get-started:hover {
    background: var(--primary);
    color: white;
    box-shadow: 0 0 20px rgba(var(--primary-rgb), 0.4);
    transform: translateY(-1px);
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.4rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 9rem 2rem 4rem; /* Augmenté le padding top de 8rem à 9rem pour compenser navbar 80px */
    position: relative;
    overflow: hidden;
}

.hero-content {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem; /* Réduit de 0.875rem pour meilleur espacement */
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    font-size: 0.8rem;
    font-family: var(--font-mono);
    color: var(--primary);
    margin-bottom: 2rem;
    font-weight: 600;
    animation: float 6s ease-in-out infinite;
}

.ping-dot {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

.hero-badge i {
    font-size: 0.9rem;
    color: var(--primary);
}

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

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

.hero-title {
    font-size: clamp(3.5rem, 10vw, 6.5rem); /* ÉNORMÉMENT augmenté: de 5.5rem max à 6.5rem */
    font-weight: 900;
    line-height: 1.15; /* Augmenté de 1.05 à 1.15 pour éviter coupure */
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
    overflow: visible; /* Assurer que le texte n'est pas coupé */
    padding: 0.25rem 0; /* Padding pour éviter coupure */
}

.hero-title-line {
    display: block;
    font-size: clamp(2rem, 6vw, 3.25rem); /* Augmenté de 2.75rem à 3.25rem */
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    padding: 0.15rem 0; /* Padding pour éviter coupure en haut */
}

.hero-title-accent {
    display: block;
    background: linear-gradient(135deg, var(--primary) 0%, #ffffff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    position: relative;
    font-size: clamp(4rem, 10vw, 7rem); /* BEAUCOUP plus grand pour "Intelligence Platform" */
    line-height: 1.15; /* Ligne ajoutée pour éviter coupure */
    padding: 0.15rem 0; /* Padding pour éviter coupure en bas */
}

.hero-subtitle {
    font-size: clamp(1.2rem, 3vw, 1.5rem); /* Augmenté de 1.375rem à 1.5rem */
    color: var(--text-muted);
    max-width: 850px; /* Augmenté de 800px */
    margin: 2rem auto 2.5rem;
    line-height: 1.7;
    font-weight: 400;
}

.hero-actions {
    display: flex;
    gap: 1.25rem;
    justify-content: center;
    margin-bottom: 4rem;
    flex-wrap: wrap;
}

.btn {
    padding: 1rem 2rem; /* Augmenté de 0.875rem 1.75rem */
    border-radius: var(--radius-md);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    transition: all 0.2s ease;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 0 25px rgba(var(--primary-rgb), 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 35px rgba(var(--primary-rgb), 0.5);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
}

/* Statistiques */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem; /* Augmenté de 1.5rem */
    max-width: 1000px;
    margin: 0 auto;
    padding-top: 2.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-item {
    text-align: center;
    padding: 1.25rem;
}

.stat-value {
    font-size: 2.5rem; /* Augmenté de 2rem */
    font-weight: 800;
    font-family: var(--font-mono);
    background: linear-gradient(to bottom, #fff, #a1a1aa);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 0.75rem;
}

.stat-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    font-weight: 500;
}

/* Sections */
.section {
    padding: 5rem 2rem; /* Augmenté de 4rem */
    position: relative;
    background: transparent !important;
    overflow: visible; /* Éviter coupure des cartes au hover */
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 3rem; /* Augmenté de 2.5rem */
    font-weight: 800;
    margin-bottom: 1.25rem;
    background: linear-gradient(to right, var(--primary), #ffffff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.2rem; /* Augmenté de 1.1rem */
}

/* Data Sources */
.sources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 0; /* Ajout de padding pour éviter coupure au hover */
}

.source-card {
    padding: 2.25rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    transition: all 0.3s ease;
    overflow: visible; /* Éviter coupure */
}

.source-card:hover {
    border-color: rgba(var(--primary-rgb), 0.8); /* Bordure bleue plus visible */
    background: rgba(255, 255, 255, 0.04);
    /* transform: translateY(-6px); - SUPPRIMÉ */
    /* box-shadow supprimée car pas de mouvement */
}

.source-icon {
    width: 52px;
    height: 52px;
    background: rgba(var(--primary-rgb), 0.1);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--primary);
    font-size: 1.375rem;
}

.source-title {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0.875rem;
    color: var(--text-primary);
}

.source-description {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.65;
}

/* Features */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 0; /* Ajout de padding pour éviter coupure au hover */
}

.feature-card {
    padding: 2.25rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    transition: all 0.3s ease;
    overflow: visible; /* Éviter coupure */
}

.feature-card:hover {
    border-color: rgba(var(--primary-rgb), 0.8); /* Bordure bleue plus visible */
    background: rgba(255, 255, 255, 0.04);
    /* transform: translateY(-6px); - SUPPRIMÉ */
    /* box-shadow supprimée car pas de mouvement */
}

.feature-icon {
    width: 52px;
    height: 52px;
    background: rgba(var(--primary-rgb), 0.1);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--primary);
    font-size: 1.375rem;
}

.feature-title {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0.875rem;
    color: var(--text-primary);
}

.feature-description {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.65;
}

/* Products Section */
.products-section {
    background: transparent;
    position: relative;
    overflow: hidden;
}

.products-scroll-container {
    overflow: hidden;
    position: relative;
    margin: 2rem 0;
}

.products-scroll {
    display: flex;
    gap: 1.75rem;
    animation: scroll 80s linear infinite;
    width: max-content;
}

.products-scroll:hover {
    animation-play-state: paused;
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.product-card {
    width: 280px;
    flex-shrink: 0;
    padding: 1.75rem;
    padding-bottom: 2rem; /* Plus de padding en bas pour éviter coupure */
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    transition: all 0.3s ease;
    overflow: visible; /* Éviter coupure */
    min-height: 200px; /* Hauteur minimale pour éviter compression */
}

.product-card:hover {
    border-color: rgba(var(--primary-rgb), 0.8); /* Bordure bleue plus visible */
    background: rgba(255, 255, 255, 0.04);
    /* transform: translateY(-5px); - SUPPRIMÉ */
    /* box-shadow supprimée car pas de mouvement */
}

.product-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.product-icon {
    font-size: 1.625rem;
}

.product-icon.premium {
    color: var(--primary);
}

.product-icon.enterprise {
    color: #3b82f6;
}

.product-icon.elite {
    color: #a855f7;
}

.product-icon.essential {
    color: #60a5fa;
}

.product-icon.private {
    color: #10b981;
}

.product-tag {
    padding: 0.25rem 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    font-size: 0.7rem;
    font-family: var(--font-mono);
    color: var(--text-muted);
    text-transform: uppercase;
}

.product-name {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.product-price {
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 1.625rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.product-price span {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-family: var(--font-sans);
    font-weight: 400;
}

.product-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6; /* Augmenté de 1.5 pour plus d'espace */
    padding-bottom: 0.25rem; /* Padding pour éviter coupure */
    overflow: visible;
}

.products-note {
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 2rem;
}

/* Pricing Section */
.pricing-card {
    max-width: 450px;
    margin: 0 auto;
    padding: 3.5rem 2.5rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl);
    text-align: center;
    position: relative;
    box-shadow: 0 0 50px rgba(var(--primary-rgb), 0.15);
}

.pricing-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--primary);
    color: white;
    padding: 0.625rem 1.25rem;
    font-size: 0.8rem;
    font-weight: bold;
    border-bottom-left-radius: var(--radius-md);
    text-transform: uppercase;
}

.pricing-card h3 {
    font-size: 1.75rem;
    margin-bottom: 1.25rem;
    color: var(--text-primary);
}

.price {
    font-size: 4.5rem;
    font-weight: 900;
    font-family: var(--font-mono);
    color: var(--primary);
    line-height: 1;
}

.price-period {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-top: 0.75rem;
    margin-bottom: 2.5rem;
}

.pricing-features {
    list-style: none;
    margin: 2.5rem 0;
    text-align: left;
}

.pricing-features li {
    padding: 0.875rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    gap: 0.875rem;
    font-size: 1rem;
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-features i {
    color: var(--primary);
    font-size: 1.1rem;
}

/* API Section */
.api-card {
    max-width: 750px;
    margin: 0 auto;
    padding: 3.5rem 2.5rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-xl);
    text-align: center;
}

.api-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(var(--primary-rgb), 0.1);
    border: 1px solid rgba(var(--primary-rgb), 0.2);
    border-radius: var(--radius-lg);
    font-size: 2.25rem;
    color: var(--primary);
}

.api-card h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    color: var(--text-primary);
}

.api-card p {
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    line-height: 1.7;
    font-size: 1.05rem;
}

/* Footer */
footer {
    padding: 4rem 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.4);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.875rem;
}

.footer-brand p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

.footer-links h4 {
    color: var(--text-primary);
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 0.95rem;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 2.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.footer-note {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Scrollbar personnalisé */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .navbar-menu {
        display: none;
    }
    
    .navbar-actions {
        display: none;
    }
    
    .mobile-toggle {
        display: block;
    }
}

@media (max-width: 768px) {
    .navbar {
        height: 68px; /* Augmenté de 64px */
    }

    .navbar-container {
        padding: 0 1.5rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .hero {
        padding: 6.5rem 1.5rem 3rem; /* Ajusté pour navbar 68px */
    }

    .section {
        padding: 4rem 1.5rem;
    }

    .features-grid, .sources-grid {
        grid-template-columns: 1fr;
    }

    .products-scroll-container {
        margin: 1rem -1.5rem;
    }

    .products-scroll {
        padding: 0 1.5rem;
    }

    .product-card {
        width: 240px;
        padding: 1.25rem;
    }

    .pricing-card {
        padding: 2.5rem 1.5rem;
    }

    .price {
        font-size: 3.5rem;
    }

    .api-card {
        padding: 2.5rem 1.5rem;
    }

    footer {
        padding: 3rem 1.5rem;
    }

    .section-title {
        font-size: 2.25rem;
    }
    
    .logo-text {
        font-size: 1.2rem; /* Légèrement réduit sur mobile */
    }
    
    .logo-icon {
        width: 38px;
        height: 38px;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-title {
        font-size: 2.5rem; /* Augmenté de 2.25rem */
    }
    
    .hero-badge {
        font-size: 0.75rem;
        padding: 0.4rem 0.75rem;
    }

    .btn {
        padding: 0.875rem 1.75rem;
        font-size: 0.9rem;
    }

    .pricing-card {
        padding: 2rem 1.25rem;
    }

    .price {
        font-size: 3rem;
    }

    .logo-text {
        font-size: 1.15rem; /* Ajusté pour petit mobile */
    }

    .navbar {
        height: 64px; /* Légèrement réduit sur très petit écran */
    }
    
    .logo-icon {
        width: 36px;
        height: 36px;
    }
    
    .hero {
        padding: 5.5rem 1rem 2rem;
    }
}