/* ========================================
   Istya Website - Main Stylesheet
   Dark Mode Premium Design System
   ======================================== */

/* ----------------------------------------
   CSS Variables / Design Tokens
   ---------------------------------------- */
:root {
    /* Colors - Dark Mode */
    --bg-primary: #0A0E0E;
    --bg-secondary: #1A2020;
    --bg-elevated: #2A3535;
    --bg-gradient: linear-gradient(135deg, #0A0E0E 0%, #195452 100%);

    /* Brand Colors */
    --accent-primary: #9ED1D1;
    --accent-secondary: #80C8C8;
    --accent-dark: #195452;
    --accent-gradient: linear-gradient(135deg, #195452 0%, #9ED1D1 100%);

    /* Text */
    --text-primary: #FFFFFF;
    --text-secondary: #E5E5E5;
    --text-muted: #A0A0A0;

    /* Status */
    --success: #80C8C8;
    --warning: #F7B955;
    --error: #F73A54;

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;

    /* Typography */
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 20px rgba(158, 209, 209, 0.3);

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 400ms ease;

    /* Container */
    --container-max: 1200px;
    --container-padding: 1.5rem;
}

/* ----------------------------------------
   Reset & Base
   ---------------------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-secondary);
    background-color: var(--bg-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    width: 100%;
}

a {
    color: var(--accent-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--accent-secondary);
}

img {
    max-width: 100%;
    height: auto;
}

ul,
ol {
    list-style: none;
}

/* ----------------------------------------
   Typography
   ---------------------------------------- */
h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--text-primary);
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
    font-size: clamp(1.25rem, 2vw, 1.5rem);
}

h4 {
    font-size: 1.125rem;
}

.gradient-text {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ----------------------------------------
   Layout
   ---------------------------------------- */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.section-title {
    text-align: center;
    margin-bottom: var(--space-md);
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto var(--space-3xl);
}

/* ----------------------------------------
   Buttons
   ---------------------------------------- */
.btn-primary,
.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition-base);
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--accent-primary);
    color: var(--bg-primary);
}

.btn-primary:hover {
    background: var(--accent-secondary);
    box-shadow: var(--shadow-glow);
    transform: translateY(-2px);
    color: var(--bg-primary);
}

.btn-ghost {
    background: transparent;
    color: var(--text-primary);
    border-color: var(--bg-elevated);
}

.btn-ghost:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

/* ----------------------------------------
   Navigation
   ---------------------------------------- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: var(--space-md) 0;
    background: rgba(10, 14, 14, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(158, 209, 209, 0.1);
    transition: transform var(--transition-base), background var(--transition-base);
}

.nav-container {
    max-width: 98%;
    width: 98%;
    margin: 0 auto;
    padding: 0 var(--space-lg);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

@media (max-width: 768px) {

    .nav-links,
    .nav-actions {
        display: none;
    }

    .nav-mobile-toggle {
        display: flex !important;
    }

    #istya-chat-widget {
        display: none !important;
    }

    .footer-links {
        display: none;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }

    .footer-brand {
        text-align: center;
        margin: 0 auto;
    }

    .footer-bottom {
        flex-direction: column;
        gap: var(--space-md);
        text-align: center;
    }

    /* Mobile UX Fixes */
    .hero {
        padding-top: 180px !important;
    }

    .hero-content {
        margin-top: 1rem;
    }

    .steps-grid {
        justify-content: center !important;
    }

    .step-card {
        margin: 0 auto !important;
        width: 100%;
        max-width: 320px;
    }
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.nav-logo img {
    height: 60px !important;
    width: auto;
}

.nav-logo:hover {
    color: var(--text-primary);
}

.logo-icon {
    width: 32px;
    height: 32px;
}

.nav-links {
    display: flex;
    gap: var(--space-xl);
    flex-wrap: nowrap;
    align-items: center;
}

.nav-links a {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 1rem;
    white-space: nowrap;
}

.nav-links a:hover {
    color: var(--accent-primary);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-left: var(--space-2xl);
}

.nav-mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-sm);
    z-index: 3000;
    position: relative;
}

.nav-mobile-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition-base);
}

/* ----------------------------------------
   Hero Section
   ---------------------------------------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 160px var(--container-padding) var(--space-4xl);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-gradient);
    z-index: -1;
}

.hero-bg::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(158, 209, 209, 0.15) 0%, transparent 70%);
    transform: translate(-50%, -50%);
}

.hero-content {
    text-align: center;
    max-width: 900px;
    margin-bottom: var(--space-4xl);
}

.hero-title {
    margin-bottom: var(--space-lg);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-xl);
}

.hero-cta {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
}

/* Stats Bar */
.stats-bar {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
    padding: var(--space-lg) var(--space-2xl);
    background: rgba(26, 32, 32, 0.6);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(158, 209, 209, 0.2);
    border-radius: var(--radius-xl);
}

.stat-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.stat-icon {
    font-size: 1.5rem;
}

.stat-content {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-primary);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(158, 209, 209, 0.3);
}

/* ----------------------------------------
   How It Works Section
   ---------------------------------------- */
.how-it-works {
    padding: var(--space-4xl) 0;
    background: var(--bg-primary);
}

.steps-grid {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: var(--space-lg);
    flex-wrap: wrap;
}

.step-card {
    flex: 1;
    max-width: 280px;
    text-align: center;
    padding: var(--space-xl);
    background: var(--bg-secondary);
    border: 1px solid var(--bg-elevated);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
}

.step-card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-4px);
}

.step-number {
    width: 32px;
    height: 32px;
    margin: 0 auto var(--space-md);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-primary);
    color: var(--bg-primary);
    font-weight: 700;
    border-radius: var(--radius-full);
}

.step-icon {
    margin-bottom: var(--space-md);
}

.step-card h3 {
    margin-bottom: var(--space-sm);
}

.step-card p {
    font-size: 0.9375rem;
    color: var(--text-muted);
}

.step-arrow {
    font-size: 2rem;
    color: var(--accent-primary);
    align-self: center;
}

/* ----------------------------------------
   Technology Section
   ---------------------------------------- */
.technology {
    padding: var(--space-4xl) 0;
    background: var(--bg-secondary);
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
}

.tech-card {
    padding: var(--space-xl);
    background: var(--bg-primary);
    border: 1px solid var(--bg-elevated);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
}

.tech-card:hover {
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-glow);
}

.tech-icon {
    font-size: 2.5rem;
    margin-bottom: var(--space-md);
}

.tech-card h3 {
    margin-bottom: var(--space-sm);
}

.tech-highlight {
    display: inline-block;
    padding: var(--space-xs) var(--space-md);
    background: rgba(158, 209, 209, 0.15);
    color: var(--accent-primary);
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    margin-bottom: var(--space-md);
}

.tech-card p {
    color: var(--text-muted);
    margin-bottom: var(--space-md);
}

.tech-features {
    margin-bottom: var(--space-lg);
}

.tech-features li {
    padding: var(--space-xs) 0;
    padding-left: var(--space-lg);
    position: relative;
    color: var(--text-secondary);
}

.tech-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-primary);
}

.tech-link {
    font-weight: 600;
    color: var(--accent-primary);
}

/* Tech Secondary (Capteurs) */
.tech-secondary {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    padding: var(--space-md) var(--space-lg);
    background: var(--bg-primary);
    border: 1px solid var(--bg-elevated);
    border-radius: var(--radius-md);
}

.tech-icon-small {
    font-size: 1.5rem;
}

.tech-secondary-content {
    flex: 1;
}

.tech-secondary h4 {
    color: var(--text-secondary);
    font-weight: 500;
}

.tech-secondary p {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.badge {
    display: inline-block;
    padding: 2px 8px;
    font-size: 0.75rem;
    font-weight: 500;
    background: var(--bg-elevated);
    color: var(--text-muted);
    border-radius: var(--radius-sm);
    margin-left: var(--space-sm);
}

.tech-link-small {
    font-size: 0.875rem;
    white-space: nowrap;
}

/* ----------------------------------------
   Social Proof Section
   ---------------------------------------- */
.social-proof {
    padding: var(--space-4xl) 0;
    background: var(--bg-primary);
}

.client-logos {
    display: flex;
    justify-content: center;
    gap: var(--space-2xl);
    margin-bottom: var(--space-3xl);
    flex-wrap: wrap;
}

.logo-placeholder {
    width: 120px;
    height: 40px;
    background: var(--bg-elevated);
    border-radius: var(--radius-md);
    opacity: 0.5;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-lg);
    margin-bottom: var(--space-3xl);
}

.metric-card {
    text-align: center;
    padding: var(--space-xl);
    background: rgba(26, 32, 32, 0.6);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(158, 209, 209, 0.2);
    border-radius: var(--radius-lg);
}

.metric-value {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-primary);
}

.metric-label {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* Testimonial */
.testimonial {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.testimonial blockquote {
    font-size: 1.5rem;
    font-style: italic;
    color: var(--text-primary);
    margin-bottom: var(--space-xl);
    position: relative;
}

.testimonial blockquote::before,
.testimonial blockquote::after {
    content: '"';
    font-size: 3rem;
    color: var(--accent-primary);
    opacity: 0.5;
    position: absolute;
}

.testimonial blockquote::before {
    top: -1rem;
    left: -1.5rem;
}

.testimonial blockquote::after {
    bottom: -2rem;
    right: -1rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
}

.author-avatar {
    width: 48px;
    height: 48px;
    background: var(--bg-elevated);
    border-radius: var(--radius-full);
}

.author-info {
    text-align: left;
}

.author-name {
    display: block;
    font-weight: 600;
    color: var(--text-primary);
}

.author-role {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* ----------------------------------------
   Final CTA Section
   ---------------------------------------- */
.final-cta {
    padding: var(--space-4xl) 0;
    background: var(--bg-gradient);
    text-align: center;
}

.final-cta h2 {
    margin-bottom: var(--space-md);
}

.final-cta>.container>p {
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto var(--space-xl);
}

.cta-buttons {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: var(--space-md);
}

.cta-note {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* ----------------------------------------
   Footer
   ---------------------------------------- */
.footer {
    padding: var(--space-4xl) 0 var(--space-xl);
    background: var(--bg-secondary);
    border-top: 1px solid var(--bg-elevated);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(4, 1fr);
    gap: var(--space-2xl);
    margin-bottom: var(--space-3xl);
}

.footer-brand p {
    margin-top: var(--space-md);
    color: var(--text-muted);
    max-width: 250px;
}

.footer-links h4 {
    color: var(--text-primary);
    margin-bottom: var(--space-md);
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.9375rem;
}

.footer-links a:hover {
    color: var(--accent-primary);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: var(--space-xl);
    border-top: 1px solid var(--bg-elevated);
}

.footer-social {
    display: flex;
    gap: var(--space-md);
}

.footer-social a {
    color: var(--text-muted);
    transition: color var(--transition-fast);
}

.footer-social a:hover {
    color: var(--accent-primary);
}

.footer-copyright {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* ----------------------------------------
   Responsive
   ---------------------------------------- */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {

    .nav-links,
    .nav-actions {
        display: none;
    }

    .nav-mobile-toggle {
        display: flex;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .stats-bar {
        flex-direction: column;
        gap: var(--space-md);
        padding: var(--space-lg);
    }

    .stat-divider {
        width: 100%;
        height: 1px;
    }

    .step-arrow {
        display: none;
    }

    .steps-grid {
        flex-direction: column;
        align-items: center;
    }

    .step-card {
        max-width: 100%;
    }

    .tech-secondary {
        flex-direction: column;
        text-align: center;
    }

    .testimonial blockquote {
        font-size: 1.25rem;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-bottom {
        flex-direction: column;
        gap: var(--space-md);
        text-align: center;
    }
}

@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .metric-value {
        font-size: 2rem;
    }
}

/* ----------------------------------------
   Animations
   ---------------------------------------- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content,
.stats-bar {
    animation: fadeInUp 0.8s ease-out;
}

.hero-content {
    animation-delay: 0.2s;
}

.stats-bar {
    animation-delay: 0.4s;
}