/* 
 * Optiflow IA - Design System 
 * Colors: Deep Black background, Vibrant Cyan/Teal accents (#23F7DD)
 * Typography: Wide Sans-Serif (Inter/Roobert style), ExtraBold Headings
 * Shapes: Large Border Radius (24px+), Glassmorphism, Glows
 */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800;900&display=swap');

:root {
    /* Colors */
    --bg-color: #060606;
    --surface-color: #121212;
    --surface-hover: #1A1A1A;
    --text-primary: #FFFFFF;
    --text-secondary: #A0A0A0;
    --accent-color: #23F7DD;
    /* MultiversX Cyan/Teal */
    --accent-hover: #00E0C0;
    --accent-glow: rgba(35, 247, 221, 0.4);

    /* Typography */
    --font-main: 'Montserrat', sans-serif;

    /* Spacing */
    --spacing-xs: 0.5rem;
    /* 8px */
    --spacing-sm: 1rem;
    /* 16px */
    --spacing-md: 2rem;
    /* 32px */
    --spacing-lg: 4rem;
    /* 64px */
    --spacing-xl: 5rem;
    /* 80px (Reduced from 128px) */

    /* Container */
    --container-width: 1200px;
    --header-height: 80px;

    /* Border Radius */
    --radius-pill: 12px;
    /* Buttons (User request: 12px) */
    --radius-card: 12px;
    /* Blocks / Cards (User request: 12px) */
    --radius-button: 12px;
    /* Inputs / Alt buttons */
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    /* For glow effects */
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-main);
    font-weight: 800;
    /* ExtraBold */
    letter-spacing: -0.02em;
    /* Tight spacing for impact */
    line-height: 1.1;
    margin-bottom: var(--spacing-sm);
    color: white;
}

h1 {
    font-size: clamp(3rem, 6vw, 5rem);
    letter-spacing: -0.03em;
}

h2 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
}

h3 {
    font-size: 1.75rem;
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
    position: relative;
    z-index: 2;
}

.text-accent {
    color: var(--accent-color);
    text-shadow: 0 0 20px rgba(35, 247, 221, 0.3);
}

.text-center {
    text-align: center;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 40px;
    border-radius: var(--radius-pill);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: none;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.btn-primary {
    background-color: var(--accent-color);
    color: black;
    /* Contrast against Teal */
    box-shadow: 0 0 20px rgba(35, 247, 221, 0.3);
}

.btn-primary:hover {
    background-color: white;
    color: black;
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.5);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: white;
}

/* Burger Menu */
.burger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 2000;
    position: relative;
    padding: 10px;
    /* Larger clickable area */
    margin-right: -10px;
    /* Offset padding */
}

.burger span {
    display: block;
    width: 25px;
    height: 3px;
    /* Slightly thicker bars */
    background-color: white;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Burger Animation */
.burger.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.burger.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-20px);
}

.burger.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

.glow {
    pointer-events: none;
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: rgba(6, 6, 6, 0.7);
    /* More transparent */
    backdrop-filter: blur(20px);
    z-index: 1000;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-family: var(--font-main);
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: -0.02em;
    color: white;
}

nav ul {
    display: flex;
    gap: var(--spacing-md);
    list-style: none;
}

nav a {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-secondary);
}

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

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: var(--header-height);
    overflow: hidden;
    background-image: url('../images/fond-geometrie-hp.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-content {
    max-width: 900px;
    position: relative;
    z-index: 2;
    text-align: center;
    margin: 0 auto;
}

.hero-subtitle {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(35, 247, 221, 0.1);
    border-radius: var(--radius-pill);
    color: var(--accent-color);
    font-size: 0.875rem;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    border: 1px solid rgba(35, 247, 221, 0.2);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 0 15px rgba(35, 247, 221, 0.1);
}

.hero p {
    font-size: 1.35rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
    max-width: 650px;
    line-height: 1.7;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: center;
}

/* Background Effects (Glows) */
.glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    z-index: 1;
    pointer-events: none;
}

.glow-hero {
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(35, 247, 221, 0.15) 0%, rgba(6, 6, 6, 0) 70%);
    top: -200px;
    right: -200px;
}

.glow-secondary {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 100, 255, 0.1) 0%, rgba(6, 6, 6, 0) 70%);
    bottom: -100px;
    left: -100px;
}

/* Integrations Section */
.integrations {
    padding: var(--spacing-lg) 0;
    text-align: center;
    background: linear-gradient(to bottom, transparent, rgba(35, 247, 221, 0.02));
}

.integrations h4 {
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--spacing-md);
    font-weight: 600;
}

.logos-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-md);
    flex-wrap: wrap;
    opacity: 0.7;
}

.logos-grid img {
    height: 30px;
    width: auto;
    filter: grayscale(100%) brightness(200%);
    /* Force white */
    transition: all 0.3s ease;
    opacity: 0.6;
}

.logos-grid img:hover {
    filter: grayscale(0%) brightness(100%);
    /* Original color (if any) or just brighter */
    opacity: 1;
    transform: scale(1.1);
}

/* Sections */
section {
    padding: var(--spacing-xl) 0;
    position: relative;
}

.section-header {
    margin-bottom: var(--spacing-lg);
}

.contact-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
}

@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

/* Cards (Glassmorphism + Large Radius) */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--spacing-md);
}

.card {
    background: rgba(18, 18, 18, 0.6);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-card);
    padding: 40px;
    transition: all 0.4s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.card:hover {
    transform: translateY(-10px);
    border-color: rgba(35, 247, 221, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.card:hover::before {
    opacity: 1;
}

.card-icon {
    width: 64px;
    height: 64px;
    background: rgba(35, 247, 221, 0.1);
    border-radius: 12px;
    /* Matches the new 12px radius */
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-color);
    margin-bottom: var(--spacing-sm);
    border: 1px solid rgba(35, 247, 221, 0.2);
}

.card-icon i,
.card-icon svg {
    width: 32px;
    height: 32px;
    stroke-width: 2px;
}

.card h3 {
    margin-bottom: var(--spacing-xs);
    color: white;
    font-size: 1.5rem;
}

.card p {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* Forms */
form {
    position: relative;
    z-index: 10;
}

input,
textarea {
    width: 100%;
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-card);
    /* Match cards for consistency */
    color: white;
    font-family: inherit;
    font-size: 1rem;
    margin-bottom: var(--spacing-sm);
    transition: all 0.3s ease;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    background: rgba(255, 255, 255, 0.08);
    /* Slightly lighter on focus */
    box-shadow: 0 0 0 4px rgba(35, 247, 221, 0.1);
}

/* Stats */
.stat-number {
    font-size: 4rem;
    font-weight: 900;
    color: var(--accent-color);
    text-shadow: 0 0 30px rgba(35, 247, 221, 0.4);
}

/* Testimonials */
.testimonial-card {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    text-align: left;
}

.testimonial-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-xs);
}

.testimonial-header h4 {
    margin-bottom: 0;
    font-size: 1.1rem;
}

.testimonial-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--accent-color);
    box-shadow: 0 0 15px rgba(35, 247, 221, 0.2);
    flex-shrink: 0;
}

.testimonial-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.4);
    transform-origin: center 30%;
    /* Focus on the upper part where the face is */
}

/* FAQ */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.faq-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-card);
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: rgba(35, 247, 221, 0.2);
    background: rgba(255, 255, 255, 0.05);
}

.faq-question {
    width: 100%;
    padding: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: none;
    border: none;
    color: white;
    font-family: var(--font-main);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
}

.faq-question i {
    transition: transform 0.3s ease;
    color: var(--accent-color);
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0, 1, 0, 1);
    background: rgba(0, 0, 0, 0.2);
}

.faq-item.active .faq-answer {
    max-height: 500px;
    transition: all 0.3s cubic-bezier(1, 0, 1, 0);
}

.faq-answer p {
    padding: 0 24px 24px 24px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Footer */
footer {
    background: #000;
    padding: var(--spacing-lg) 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Mobile */
@media (max-width: 768px) {
    h1 {
        font-size: 3rem;
    }

    .hero-actions {
        flex-direction: column;
    }

    .burger {
        display: flex;
    }

    nav ul {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(6, 6, 6, 0.95);
        backdrop-filter: blur(20px);
        transition: right 0.4s ease;
        gap: var(--spacing-lg);
        z-index: 1000;
    }

    nav ul.active {
        right: 0;
    }

    .hero {
        padding-top: 100px;
        height: auto;
    }
}