/* ==========================================================================
   CSS Variables & Base Reset
   ========================================================================== */
:root {
    /* Brand Colors */
    --primary: #1C4E80; /* Blue principale */
    --primary-dark: #123354;
    --primary-light: #e8eff5;
    --secondary: #0f172a; /* Slate 900 for very dark text/bg */
    --accent: #DBAA00; /* Yellow accent */
    --accent-hover: #c49800;
    
    /* Semantic Colors */
    --success: #10b981;
    --danger: #ef4444;
    
    /* Backgrounds */
    --bg-body: #ffffff;
    --bg-light: #f8fafc;
    --bg-dark: #1e293b;
    
    /* Patterns (Soft SaaS Dots) */
    --pattern-light: radial-gradient(rgba(28, 78, 128, 0.06) 1.5px, transparent 1.5px);
    --pattern-dark: radial-gradient(rgba(255, 255, 255, 0.05) 1.5px, transparent 1.5px);
    --pattern-size: 24px 24px;
    
    /* Text */
    --text-main: #334155; /* Slate 700 */
    --text-muted: #64748b; /* Slate 500 */
    --text-light: #f1f5f9;
    
    /* Font Families */
    /* Primary font: Gotham (if installed), fallback to Overpass then sans-serif */
    --font-heading: 'Gotham', 'Overpass', sans-serif;
    --font-body: 'Overpass', sans-serif;
    
    /* Utilities */
    --radius-sm: 8px;
    --radius-md: 15px; 
    --radius-lg: 20px; 
    --radius-full: 20px; 
    
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.05);
    --shadow-glow: 0 0 40px -10px rgba(28, 78, 128, 0.4); 
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--bg-body);
    line-height: 1.6;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--secondary);
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* ==========================================================================
   Layout & Utilities
   ========================================================================== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-padding {
    padding: 100px 0;
}

.text-center { text-align: center; }
.relative { position: relative; }
.overflow-hidden { overflow: hidden; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 2rem; }
.mb-6 { margin-bottom: 3rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.z-10 { z-index: 10; }

.bg-light { 
    background-color: var(--bg-light); 
    background-image: var(--pattern-light);
    background-size: var(--pattern-size);
}
.bg-dark { background-color: var(--bg-dark); }
.text-white { color: #fff !important; }
.text-gray { color: #94a3b8 !important; }
.text-gray-sm { color: #cbd5e1 !important; font-size: 0.95rem; }
.text-green { color: var(--success); }
.text-yellow { color: var(--accent); }

.accent-text {
    color: var(--accent);
}

/* Typography Scale */
h1 { font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 800; letter-spacing: -0.02em; }
.h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; letter-spacing: -0.01em; margin-bottom: 1rem;}
h3 { font-size: 1.5rem; font-weight: 600; margin-bottom: 0.75rem;}
h4 { font-size: 1.25rem; font-weight: 600; margin-bottom: 0.5rem;}
p { font-size: 1.125rem; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-family: var(--font-heading);
    cursor: pointer;
    border: none;
    transition: var(--transition);
    font-size: 1rem;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background-color: var(--primary);
    color: white;
}

.btn-ghost {
    background-color: var(--primary-light);
    color: var(--primary);
}

.btn-ghost:hover {
    background-color: #d1dfec;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background-color: var(--primary-light);
    color: var(--primary);
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(28, 78, 128, 0.2);
}

.badge-dark {
    background-color: rgba(255,255,255,0.1);
    color: #fff;
    border-color: rgba(255,255,255,0.2);
}

.badge i { width: 16px; height: 16px; }

/* ==========================================================================
   Navigation
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem 0;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 100;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 0.75rem 0;
    box-shadow: var(--shadow-sm);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.nav-logo {
    height: 40px; 
    width: auto;
}

.footer-logo {
    height: 40px;
    width: auto;
}

.nav-links {
    display: none;
    gap: 2rem;
}

@media (min-width: 768px) {
    .nav-links { display: flex; }
}

.nav-links a {
    font-weight: 600;
    font-family: var(--font-heading);
    color: var(--text-main);
    font-size: 1rem;
}

.nav-links a:hover {
    color: var(--accent);
}

.nav-actions {
    display: none;
    gap: 1rem;
}

@media (min-width: 768px) {
    .nav-actions { display: flex; }
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    padding: 160px 0 100px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background-color: var(--bg-body); /* Clean white base */
    background-image: var(--pattern-light); /* Soft pattern */
    background-size: var(--pattern-size);
}

.hero-bg-glow {
    position: absolute;
    top: -20%;
    right: -10%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(28, 78, 128, 0.08) 0%, rgba(255,255,255,0) 70%);
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 10;
}

@media (min-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr 1fr;
    }
}

.hero-content {
    max-width: 600px;
}

.hero-subtitle {
    margin: 1.5rem 0 2.5rem;
    font-size: 1.25rem;
    color: var(--text-muted);
}

.hero-cta-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

/* Hero Visual: Mockup */
.hero-visual {
    position: relative;
    perspective: 1000px;
}

.dashboard-mockup {
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    border: 1px solid rgba(0,0,0,0.05);
    overflow: hidden;
    transform: rotateY(-5deg) rotateX(5deg);
    transition: transform 0.5s ease;
}

.dashboard-mockup:hover {
    transform: rotateY(0) rotateX(0);
}

.mockup-header {
    background: #f8fafc;
    padding: 1rem;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #f1f5f9;
}

.mockup-header .dots {
    display: flex;
    gap: 6px;
}

.mockup-header .dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%; 
    background: #cbd5e1;
}

.mockup-header .dots span:nth-child(1) { background: var(--danger); }
.mockup-header .dots span:nth-child(2) { background: var(--accent); }
.mockup-header .dots span:nth-child(3) { background: var(--success); }

.mockup-title {
    margin-left: 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-muted);
    font-family: var(--font-heading);
}

.mockup-body {
    display: flex;
    height: 300px;
}

.mockup-sidebar {
    width: 60px;
    background: var(--primary);
    border-right: 1px solid #f1f5f9;
}

.mockup-content {
    flex: 1;
    padding: 1.5rem;
    background: #fafafa;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mockup-card {
    background: white;
    padding: 1rem;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 1rem;
    border-left: 4px solid var(--accent);
}

.mockup-card h4 { margin: 0; font-size: 1rem; }
.mockup-card p { margin: 0; font-size: 0.875rem; color: var(--text-muted); }
.mockup-card i { color: var(--accent); }

.status {
    margin-left: auto;
    padding: 0.25rem 0.5rem;
    border-radius: 4px; 
    font-size: 0.75rem;
    font-weight: 600;
}
.status.yellow { background: #fef08a; color: #854d0e; }

.mockup-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.stat-box {
    background: white;
    height: 60px;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
}

.mockup-chart {
    background: white;
    flex: 1;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
    background-image: linear-gradient(to right, transparent 50%, #f8fafc 50%), linear-gradient(to top, transparent 50%, #f8fafc 50%);
    background-size: 20px 20px;
}

.floating-badge {
    position: absolute;
    background: white;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    z-index: 20;
    animation: float 6s ease-in-out infinite;
    border: 1px solid #f1f5f9;
}

.floating-badge img {
    width: 24px;
    height: 24px;
    border-radius: 4px;
}

.badge-1 { top: 10%; right: -5%; animation-delay: 0s; }
.badge-2 { bottom: 15%; left: -10%; animation-delay: 3s; }

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

/* ==========================================================================
   Constat Section
   ========================================================================== */
.section-desc {
    max-width: 700px;
    margin: 0 auto 3rem;
    color: var(--text-muted);
}

.problem-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .problem-grid { grid-template-columns: repeat(3, 1fr); }
}

.problem-card {
    background: white;
    padding: 2.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid #f1f5f9;
}

.problem-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.card-icon {
    width: 60px;
    height: 60px;
    background: #f1f5f9;
    color: var(--primary);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}
.card-icon i { width: 32px; height: 32px; }

.problem-card:nth-child(1) .card-icon { background: #fee2e2; color: var(--danger); }
.problem-card:nth-child(2) .card-icon { background: #fef9c3; color: var(--accent); }
.problem-card:nth-child(3) .card-icon { background: var(--primary-light); color: var(--primary); }


/* ==========================================================================
   Solution Section (Dark)
   ========================================================================== */
.dark-section {
    background-color: var(--primary-dark);
    background-image: var(--pattern-dark);
    background-size: var(--pattern-size);
    color: white;
    position: relative;
    overflow: hidden;
}

.dark-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.04) 0%, rgba(18, 51, 84, 0) 50%);
    pointer-events: none;
}

.solution-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 10;
}

@media (min-width: 1024px) {
    .solution-grid { grid-template-columns: 1fr 1fr; }
}

.pillars-list {
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.pillar-item {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
}

.pillar-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: white;
}

.bg-blue { background: var(--primary); }
.bg-yellow { background: var(--accent); color: var(--secondary); }
.bg-light-blue { background: #3b82f6; }

.solution-visual {
    position: relative;
}

.glass-panel {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.panel-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-weight: 600;
    font-family: var(--font-heading);
}

.panel-body {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

/* Circular Chart */
.chart-circle {
    position: relative;
    width: 150px;
    height: 150px;
}
.inner-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    font-weight: 700;
    font-family: var(--font-heading);
}
.circular-chart {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    max-height: 250px;
}
.circle-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.1);
    stroke-width: 2.5;
}
.circle {
    fill: none;
    stroke-width: 2.5;
    stroke-linecap: square; 
    animation: progress 2s ease-out forwards;
}
.circular-chart.blue .circle { stroke: var(--accent); }

@keyframes progress {
    0% { stroke-dasharray: 0, 100; }
}

.triage-list {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.triage-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.9rem;
    font-weight: 500;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 2px;
}
.dot.yellow { background: var(--accent); }
.dot.blue { background: var(--primary-light); }
.dot.green { background: var(--success); }

.badge-count {
    margin-left: auto;
    background: rgba(255,255,255,0.1);
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 600;
}

/* ==========================================================================
   Modules Métiers (QHSE) Section
   ========================================================================== */
.modules {
    /* Using bg-light variable classes defined above */
}

.module-block {
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid #f1f5f9;
    overflow: hidden;
    position: relative;
}

.module-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 2rem;
}

/* Sécurité Block (Dark Theme to match the 3rd screenshot) */
.module-security {
    background-color: var(--primary-dark);
    background-image: var(--pattern-dark);
    background-size: var(--pattern-size);
    color: white;
    padding: 3rem;
}

.module-security .module-title {
    color: white;
}

.security-timeline {
    position: relative;
    padding-top: 1rem;
}

.sec-line {
    position: absolute;
    top: 25px; /* Align with numbers */
    left: 10%;
    right: 10%;
    height: 2px;
    background: rgba(255, 255, 255, 0.2);
    z-index: 1;
    display: none;
}

@media (min-width: 768px) {
    .sec-line { display: block; }
}

.sec-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    position: relative;
    z-index: 2;
}

@media (min-width: 768px) {
    .sec-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
}

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

@media (min-width: 768px) {
    .sec-card { text-align: center; } /* Force center alignment for the 3 columns */
}

.sec-num {
    width: 50px;
    height: 50px;
    background: white;
    color: var(--secondary);
    font-size: 1.5rem;
    font-weight: 800;
    font-family: var(--font-heading);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px; /* Slightly rounded square */
    margin: 0 auto 1.5rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.sec-card h4 {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.sec-card p {
    color: #cbd5e1;
    font-size: 1rem;
}

.sec-card p strong {
    color: white;
    font-weight: 600;
}

/* Qualité Block (Light Theme Split like the 2nd screenshot) */
.module-quality {
    padding: 0;
}

.quality-split {
    display: flex;
    flex-direction: column;
}

@media (min-width: 992px) {
    .quality-split {
        flex-direction: row;
    }
}

.quality-content {
    padding: 3rem;
    flex: 1;
}

.quality-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .quality-cards {
        grid-template-columns: 1fr 1fr;
    }
}

.qual-card {
    background: var(--primary-light);
    padding: 2rem;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(28, 78, 128, 0.1);
}

.qual-num {
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: white;
    font-size: 1.5rem;
    font-weight: 800;
    font-family: var(--font-heading);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px; /* Slightly rounded square */
    margin-bottom: 1.5rem;
}

.qual-card h4 {
    color: var(--primary);
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

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

.quality-visual {
    flex: 1;
    background-color: var(--primary-dark); /* Using color if no image */
    background-image: url('https://images.unsplash.com/photo-1581091226825-a6a2a5aee158?ixlib=rb-4.0.3&auto=format&fit=crop&w=1000&q=80');
    background-size: cover;
    background-position: center;
    min-height: 300px;
    position: relative;
}

.quality-visual::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(28, 78, 128, 0.4); /* Blue overlay to stay on brand */
}

.img-overlay {
    position: absolute;
    bottom: 2rem;
    left: 2rem;
    background: white;
    padding: 1rem 1.5rem;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 10;
    box-shadow: var(--shadow-md);
    font-weight: 600;
    color: var(--primary);
}

.img-overlay i {
    color: var(--accent);
}

/* ==========================================================================
   Process Section
   ========================================================================== */
.process {
    background-color: var(--bg-body);
    background-image: var(--pattern-light);
    background-size: var(--pattern-size);
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 4rem auto;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 20px;
    height: 100%;
    width: 2px;
    background: #e2e8f0;
}

@media (min-width: 768px) {
    .timeline::before {
        left: 50%;
        transform: translateX(-50%);
    }
}

.timeline-item {
    display: flex;
    flex-direction: column;
    position: relative;
    margin-bottom: 3rem;
}

@media (min-width: 768px) {
    .timeline-item {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    .timeline-item:nth-child(even) {
        flex-direction: row-reverse;
    }
}

.timeline-marker {
    position: absolute;
    left: 20px;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: white;
    border-radius: 4px; 
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    z-index: 2;
    border: 4px solid white;
    box-shadow: var(--shadow-sm);
}

@media (min-width: 768px) {
    .timeline-marker {
        left: 50%;
    }
}

.timeline-content {
    margin-left: 60px;
    background: white;
    padding: 2rem;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
    flex: 1;
    border: 1px solid #f1f5f9;
}

@media (min-width: 768px) {
    .timeline-content {
        margin-left: 0;
        width: 45%;
        flex: none;
    }
}

.timeline-visual {
    display: none;
}

@media (min-width: 768px) {
    .timeline-visual {
        display: flex;
        width: 45%;
        justify-content: center;
    }
}

.process-node {
    width: 80px;
    height: 80px;
    background: #f8fafc;
    border: 2px dashed #cbd5e1;
    border-radius: var(--radius-sm); 
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}
.process-node.success {
    background: #ecfdf5;
    border: 2px solid var(--success);
    color: var(--success);
    border-style: solid;
}
.process-node i { width: 32px; height: 32px; }

/* The Workflow Conclusion (Replaced Logical Link) */
.workflow-conclusion {
    max-width: 900px;
    margin: 5rem auto 0;
    background-color: white;
    padding: 3rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    border: 1px solid var(--primary-light);
    border-left: 6px solid var(--accent); /* Yellow accent edge */
    position: relative;
    overflow: hidden;
}

.wc-content h4 {
    color: var(--primary);
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.wc-content p {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 700px;
    margin-bottom: 2rem;
}

.wc-content p strong {
    color: var(--text-main);
}

.wc-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

.wc-tags span {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--bg-light);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-main);
    border: 1px solid #e2e8f0;
}

.wc-tags span i {
    width: 18px;
    height: 18px;
    color: var(--primary);
}

.wc-tags span.highlight {
    background: var(--primary-light);
    color: var(--primary);
    border-color: rgba(28, 78, 128, 0.2);
}

.wc-tags span.highlight i {
    color: var(--accent);
}

/* ==========================================================================
   Culture / Gamification Section
   ========================================================================== */
.bg-gradient {
    /* Layers: Pattern on top, then the linear gradient */
    background-image: var(--pattern-light), linear-gradient(180deg, var(--bg-body) 0%, var(--primary-light) 100%);
    background-size: var(--pattern-size), 100% 100%;
}

.culture-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    align-items: center;
}

@media (min-width: 992px) {
    .culture-layout { grid-template-columns: 1fr 1fr; }
}

.culture-phone-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
}

.phone-mockup {
    width: 300px;
    height: 600px;
    background: white;
    border: 12px solid var(--secondary);
    border-radius: 24px; 
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.phone-notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 25px;
    background: var(--secondary);
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    z-index: 10;
}

.phone-screen {
    padding: 2.5rem 1rem 1rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: #f8fafc;
}

.app-header {
    text-align: center;
    font-weight: 700;
    font-size: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 1rem;
    font-family: var(--font-heading);
}

.leaderboard {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex: 1;
}

.leader-item {
    background: white;
    padding: 0.75rem;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid #f1f5f9;
}

.leader-item img {
    width: 40px;
    height: 40px;
    border-radius: 4px;
}

.rank {
    font-weight: 700;
    width: 20px;
    text-align: center;
}
.top-1 .rank { color: var(--accent); }
.top-2 .rank { color: var(--primary); }
.top-3 .rank { color: var(--text-muted); }

.user-info {
    display: flex;
    flex-direction: column;
    flex: 1;
}
.user-info strong { font-size: 0.9rem; font-family: var(--font-heading); }
.user-info span { font-size: 0.75rem; color: var(--text-muted); }

.score {
    font-weight: 700;
    color: var(--primary);
    font-size: 0.9rem;
}

.btn-app {
    width: 100%;
    background: var(--primary);
    color: white;
    border: none;
    padding: 1rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(28, 78, 128, 0.3);
    font-family: var(--font-heading);
}

.floating-star {
    position: absolute;
    color: var(--accent);
    animation: pulse 2s infinite alternate;
}
.star-1 { top: 10%; right: 10%; width: 40px; height: 40px; }
.star-2 { bottom: 20%; left: 5%; width: 30px; height: 30px; }

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

.feature-box {
    display: flex;
    gap: 1.5rem;
    background: white;
    padding: 2rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid #f1f5f9;
}

.fb-icon {
    width: 60px;
    height: 60px;
    background: #fef9c3;
    color: var(--accent);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.fb-icon i { width: 32px; height: 32px; }

/* ==========================================================================
   Benefits / Footer CTA
   ========================================================================== */
.benefits {
    background-color: var(--primary);
    background-image: var(--pattern-dark);
    background-size: var(--pattern-size);
    color: white;
    padding: 120px 0;
    position: relative;
}

.benefits-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Soft glow over the pattern */
    background: radial-gradient(circle at 50% 0%, rgba(255,255,255,0.06) 0%, transparent 60%);
    pointer-events: none;
}

.benefits .h2 { color: white; }
.benefits .section-desc { color: #cbd5e1; }

.benefits-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}

.benefit-tag {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.2);
    padding: 1rem 1.5rem;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
}
.benefit-tag i { color: var(--accent); }

.final-cta-box {
    background: white;
    padding: 4rem 2rem;
    border-radius: var(--radius-md);
    max-width: 800px;
    margin: 0 auto;
    color: var(--secondary);
    box-shadow: var(--shadow-lg);
}

.final-cta-box h3 { font-size: 2rem; margin-bottom: 1rem; }
.final-cta-box p { color: var(--text-muted); }

.contact-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.final-cta-box .btn-primary { background-color: var(--accent); color: var(--secondary); }
.final-cta-box .btn-primary:hover { background-color: var(--accent-hover); color: var(--secondary); }

.btn-whatsapp {
    background-color: #25D366;
    color: white;
    box-shadow: var(--shadow-sm);
}
.btn-whatsapp:hover {
    background-color: #1ebc59;
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    color: white;
}

.bg-white {
    background-color: white !important;
}


/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    background: var(--secondary);
    color: #94a3b8;
    padding: 4rem 0 2rem;
    border-top: 4px solid var(--accent);
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    margin-bottom: 3rem;
}

@media (min-width: 768px) {
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
    }
}

.footer-brand {
    max-width: 300px;
}
.footer-brand .logo { display: block; margin-bottom: 1rem; }

.footer-links {
    display: flex;
    gap: 4rem;
}

.link-group h4 {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.link-group a {
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 500;
}
.link-group a:hover {
    color: var(--accent);
}

.footer-icon {
    width: 16px;
    height: 16px;
    margin-right: 6px;
    vertical-align: -3px;
    color: var(--accent);
}

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

/* ==========================================================================
   Animations (Intersection Observer Classes)
   ========================================================================== */
.reveal-up {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal-fade {
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.active.reveal-up,
.active.reveal-left,
.active.reveal-right {
    opacity: 1;
    transform: translate(0);
}

.active.reveal-fade {
    opacity: 1;
}