/* ============================================================
   OSIRIS – Commercial One-Page Website
   Charte graphique : vert émeraude / vert foncé
   ============================================================ */

:root {
    --primary: #23b574;
    --primary-light: #2ed88c;
    --secondary: #00725b;
    --dark: #004d3d;
    --bg-light: #f1faf5;
    --card-bg: #ffffff;
    --text: #1a1a2e;
    --text-light: #546e7a;
    --white: #ffffff;
    --gradient: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
    --shadow: 0 8px 30px rgba(0, 114, 91, 0.12);
    --shadow-lg: 0 20px 60px rgba(0, 114, 91, 0.18);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
}

/* ---------- OSIRIS BRAND HIGHLIGHT ---------- */
.osiris-brand {
    font-weight: 700;
    color: var(--primary);
}

/* ---------- HORUS TOPBAR ---------- */
.horus-topbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1100;
    background: #1a1a2e;
    padding: 0.35rem 0;
    font-size: 0.8rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.horus-topbar-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s;
}

.horus-topbar-link:hover {
    color: #ffffff;
}

.horus-topbar-logo {
    height: 20px;
}

.horus-topbar-link strong {
    color: #ffffff;
}

.horus-topbar-url {
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.75rem;
}

/* ---------- NAVBAR ---------- */
.navbar {
    position: fixed;
    top: 32px;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.35s ease;
    background: transparent;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    padding: 0.5rem 0;
}

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

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.navbar-brand img {
    height: 42px;
    transition: height 0.3s;
}

.navbar.scrolled .navbar-brand img {
    height: 36px;
}

.navbar-brand span {
    font-weight: 800;
    font-size: 1.4rem;
    color: var(--white);
    letter-spacing: 1px;
    transition: color 0.3s;
}

.navbar.scrolled .navbar-brand span {
    color: var(--secondary);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-light);
    transition: width 0.3s;
}

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

.navbar.scrolled .nav-links a {
    color: var(--text);
}

.navbar.scrolled .nav-links a:hover {
    color: var(--primary);
}

.nav-cta {
    background: var(--white) !important;
    color: var(--secondary) !important;
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    font-weight: 600 !important;
    transition: all 0.3s !important;
}

.nav-cta:hover {
    background: var(--primary-light) !important;
    color: var(--white) !important;
    transform: translateY(-1px);
}

.navbar.scrolled .nav-cta {
    background: var(--primary) !important;
    color: var(--white) !important;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px;
}

.hamburger span {
    width: 26px;
    height: 3px;
    background: var(--white);
    border-radius: 3px;
    transition: all 0.3s;
}

.navbar.scrolled .hamburger span {
    background: var(--secondary);
}

/* ---------- HERO ---------- */
.hero {
    min-height: 100vh;
    background: var(--gradient);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, transparent 70%);
    border-radius: 50%;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255,255,255,0.04) 0%, transparent 70%);
    border-radius: 50%;
}

.hero .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content h1 {
    font-size: 3.2rem;
    font-weight: 800;
    color: var(--white);
    line-height: 1.15;
    margin-bottom: 0.5rem;
}

.hero-content h1 .highlight {
    background: linear-gradient(135deg, #a8edce 0%, #5cffa0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.7);
    margin-bottom: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.hero-content p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.88);
    margin-bottom: 2rem;
    max-width: 520px;
    line-height: 1.8;
}

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

.btn-primary-hero {
    background: var(--white);
    color: var(--secondary);
    padding: 0.9rem 2.2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.btn-primary-hero:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.btn-secondary-hero {
    border: 2px solid rgba(255,255,255,0.4);
    color: var(--white);
    padding: 0.9rem 2.2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

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

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-mockup {
    width: 100%;
    max-width: 520px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    position: relative;
}

.hero-mockup .mockup-header {
    background: var(--dark);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.mockup-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.mockup-dot.red { background: #ff5f57; }
.mockup-dot.yellow { background: #febc2e; }
.mockup-dot.green { background: #28c840; }

.mockup-body {
    background: var(--bg-light);
    padding: 24px;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mockup-bar {
    height: 14px;
    border-radius: 7px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    opacity: 0.7;
}

.mockup-bar:nth-child(1) { width: 85%; }
.mockup-bar:nth-child(2) { width: 65%; opacity: 0.5; }
.mockup-bar:nth-child(3) { width: 75%; opacity: 0.6; }

.mockup-chart {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    height: 120px;
    margin-top: auto;
    padding-top: 16px;
}

.mockup-chart-bar {
    flex: 1;
    border-radius: 6px 6px 0 0;
    background: var(--gradient);
    opacity: 0.8;
    animation: chartGrow 2s ease-out forwards;
    transform-origin: bottom;
}

@keyframes chartGrow {
    from { transform: scaleY(0); }
    to { transform: scaleY(1); }
}

.mockup-chart-bar:nth-child(1) { height: 60%; animation-delay: 0.1s; }
.mockup-chart-bar:nth-child(2) { height: 85%; animation-delay: 0.2s; }
.mockup-chart-bar:nth-child(3) { height: 45%; animation-delay: 0.3s; }
.mockup-chart-bar:nth-child(4) { height: 95%; animation-delay: 0.4s; }
.mockup-chart-bar:nth-child(5) { height: 70%; animation-delay: 0.5s; }
.mockup-chart-bar:nth-child(6) { height: 55%; animation-delay: 0.6s; }
.mockup-chart-bar:nth-child(7) { height: 80%; animation-delay: 0.7s; }

/* ---------- SECTIONS COMMUNES ---------- */
section {
    padding: 6rem 0;
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

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

.section-badge {
    display: inline-block;
    background: rgba(35, 181, 116, 0.1);
    color: var(--primary);
    padding: 0.4rem 1.2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--secondary);
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.15rem;
    color: var(--text-light);
    max-width: 620px;
    margin: 0 auto;
}

/* ---------- KPI / CHIFFRES CLÉS ---------- */
#chiffres {
    background: var(--bg-light);
}

.kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.kpi-card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 2.5rem 1.5rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
}

.kpi-card:hover {
    transform: translateY(-6px);
}

.kpi-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: rgba(35, 181, 116, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.2rem;
    font-size: 1.8rem;
}

.kpi-number {
    font-size: 2.6rem;
    font-weight: 800;
    color: var(--secondary);
    display: block;
}

.kpi-label {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-top: 0.3rem;
}

/* ---------- PROMISE ---------- */
.promise-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.promise-card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.promise-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s;
}

.promise-card:hover::before {
    transform: scaleX(1);
}

.promise-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.promise-step {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--gradient);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: 800;
    margin: 0 auto 1.2rem;
    box-shadow: 0 4px 15px rgba(35, 181, 116, 0.3);
}

.promise-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 0.8rem;
}

.promise-card p {
    font-size: 0.93rem;
    color: var(--text-light);
    line-height: 1.7;
    font-style: italic;
}

/* ---------- USE CASES ---------- */
.usecases-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.usecase-card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.usecase-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s;
}

.usecase-card:hover::before {
    transform: scaleX(1);
}

.usecase-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.usecase-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: rgba(35, 181, 116, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.2rem;
}

.usecase-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 0.8rem;
}

.usecase-card p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.7;
}

#cas-usages {
    background: var(--bg-light);
}

/* ---------- SIMULATION / MOTEUR ---------- */
#moteur {
    background: var(--bg-light);
}

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

.simulation-visual {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow-lg);
}

.sim-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 1rem;
    margin-bottom: 0.5rem;
    border-bottom: 2px solid var(--bg-light);
}

.sim-header-label {
    font-weight: 700;
    color: var(--secondary);
    font-size: 0.9rem;
}

.sim-header-count {
    font-weight: 600;
    color: var(--primary);
    font-size: 0.85rem;
    background: rgba(35, 181, 116, 0.1);
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
}

.sim-separator {
    height: 2px;
    background: var(--bg-light);
    margin: 0.5rem 0;
}

.sim-bar-fill.gold {
    background: linear-gradient(90deg, #d4a017, #f0c040);
}

.sim-bar-fill.silver {
    background: linear-gradient(90deg, #8a8a8a, #b8b8b8);
}

.sim-bar-fill.bronze {
    background: linear-gradient(90deg, #a0522d, #cd7f32);
}

.sim-bar-fill.current {
    background: linear-gradient(90deg, #ccc, #ddd);
}

.sim-label.dim, .sim-value.dim {
    color: var(--text-light);
    opacity: 0.6;
}

.sim-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.sim-row:last-child {
    border-bottom: none;
}

.sim-label {
    font-weight: 600;
    color: var(--secondary);
    min-width: 160px;
    font-size: 0.9rem;
}

.sim-bar-track {
    flex: 1;
    height: 12px;
    background: var(--bg-light);
    border-radius: 6px;
    overflow: hidden;
}

.sim-bar-fill {
    height: 100%;
    border-radius: 6px;
    background: var(--gradient);
    transition: width 1.5s ease;
}

.sim-value {
    font-weight: 700;
    color: var(--primary);
    font-size: 0.9rem;
    min-width: 50px;
    text-align: right;
}

.simulation-text h3 {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--secondary);
    margin-bottom: 1.2rem;
}

.simulation-text p {
    color: var(--text-light);
    margin-bottom: 1rem;
    font-size: 1.05rem;
}

.simulation-list {
    list-style: none;
    margin-top: 1.5rem;
}

.simulation-list li {
    padding: 0.6rem 0;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    color: var(--text);
}

.simulation-list li .check {
    color: var(--primary);
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
    margin-top: 2px;
}

/* ---------- AVANTAGES ---------- */
.advantages-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.advantage-card {
    display: flex;
    gap: 1.5rem;
    background: var(--card-bg);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: all 0.3s;
}

.advantage-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.advantage-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: rgba(35, 181, 116, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.advantage-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 0.5rem;
}

.advantage-card p {
    font-size: 0.93rem;
    color: var(--text-light);
    line-height: 1.7;
}

/* ---------- WORKFLOW ---------- */
#workflow {
    background: var(--bg-light);
}

.workflow-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    position: relative;
}

.workflow-steps::before {
    content: '';
    position: absolute;
    top: 48px;
    left: 12%;
    right: 12%;
    height: 3px;
    background: var(--gradient);
    opacity: 0.3;
    z-index: 0;
}

.workflow-step {
    text-align: center;
    position: relative;
    z-index: 1;
}

.step-number {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--gradient);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0 auto 1.2rem;
    box-shadow: 0 4px 15px rgba(35, 181, 116, 0.3);
}

.workflow-step h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 0.5rem;
}

.workflow-step p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* ---------- CTA ---------- */
.cta-section {
    background: var(--gradient);
    padding: 5rem 0;
    text-align: center;
}

.cta-section h2 {
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1.15rem;
    color: rgba(255,255,255,0.85);
    max-width: 550px;
    margin: 0 auto 2rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-cta-white {
    background: var(--white);
    color: var(--secondary);
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.05rem;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.btn-cta-white:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.btn-cta-outline {
    border: 2px solid rgba(255,255,255,0.5);
    color: var(--white);
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
    transition: all 0.3s;
}

.btn-cta-outline:hover {
    border-color: var(--white);
    background: rgba(255,255,255,0.1);
}

/* ---------- FOOTER ---------- */
footer {
    background: var(--dark);
    color: rgba(255,255,255,0.7);
    padding: 3rem 0 1.5rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-brand img {
    height: 40px;
    margin-bottom: 1rem;
}

.footer-brand p {
    font-size: 0.9rem;
    line-height: 1.7;
    max-width: 320px;
}

footer h4 {
    color: var(--white);
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

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

.footer-horus {
    margin-top: 1.2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-horus-link {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    color: rgba(255,255,255,0.6);
    font-size: 0.85rem;
    transition: color 0.3s;
}

.footer-horus-link:hover {
    color: #ffffff;
}

.footer-horus-logo {
    height: 22px;
}

.footer-horus-link strong {
    color: rgba(255,255,255,0.85);
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem 2rem 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    font-size: 0.85rem;
}

.footer-bottom a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: color 0.3s;
}

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

/* ---------- DEMO SIMULATION INTERACTIVE ---------- */
#demo-simulation {
    background: var(--bg-light);
}

.demo-sim-wrapper {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 3rem;
    align-items: start;
}

.demo-sim-form {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow);
    position: sticky;
    top: 100px;
}

.demo-sim-form h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--bg-light);
}

.demo-field {
    margin-bottom: 1.4rem;
}

.demo-field label {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.slider-row {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.demo-slider {
    flex: 1;
    -webkit-appearance: none;
    appearance: none;
    height: 8px;
    border-radius: 4px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    outline: none;
    cursor: pointer;
}

.demo-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--white);
    border: 3px solid var(--primary);
    box-shadow: 0 2px 8px rgba(35, 181, 116, 0.3);
    cursor: pointer;
    transition: transform 0.2s;
}

.demo-slider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
}

.demo-slider::-moz-range-thumb {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--white);
    border: 3px solid var(--primary);
    box-shadow: 0 2px 8px rgba(35, 181, 116, 0.3);
    cursor: pointer;
}

.slider-value {
    min-width: 42px;
    text-align: center;
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--secondary);
    background: rgba(35, 181, 116, 0.1);
    padding: 0.25rem 0.6rem;
    border-radius: 8px;
}

.demo-select {
    width: 100%;
    padding: 0.7rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-family: inherit;
    font-size: 0.9rem;
    color: var(--text);
    background: var(--white);
    cursor: pointer;
    transition: border-color 0.3s;
    outline: none;
}

.demo-select:focus {
    border-color: var(--primary);
}

.btn-launch-sim {
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: 14px;
    background: var(--gradient);
    color: var(--white);
    font-family: inherit;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 0.5rem;
    box-shadow: 0 4px 15px rgba(35, 181, 116, 0.3);
}

.btn-launch-sim:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(35, 181, 116, 0.4);
}

.btn-launch-sim:active {
    transform: translateY(0);
}

.btn-launch-sim:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Results panel */
.demo-sim-results {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    min-height: 400px;
}

.demo-results-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 350px;
    text-align: center;
    color: var(--text-light);
}

.placeholder-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    opacity: 0.4;
}

.demo-results-placeholder p {
    font-size: 1rem;
    max-width: 320px;
    line-height: 1.7;
}

/* Loading */
.demo-results-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 350px;
    text-align: center;
}

.loading-spinner {
    width: 56px;
    height: 56px;
    border: 5px solid var(--bg-light);
    border-top: 5px solid var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-bottom: 1.5rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-text {
    font-weight: 600;
    color: var(--secondary);
    font-size: 1.1rem;
    margin-bottom: 1.2rem;
}

.loading-progress-bar {
    width: 280px;
    height: 10px;
    background: var(--bg-light);
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 0.8rem;
}

.loading-progress-fill {
    width: 0%;
    height: 100%;
    background: var(--gradient);
    border-radius: 5px;
    transition: width 0.15s linear;
}

.loading-counter {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
}

/* Results content */
.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--bg-light);
}

.results-header h3 {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--secondary);
}

.results-sim-count {
    font-weight: 600;
    color: var(--primary);
    font-size: 0.85rem;
    background: rgba(35, 181, 116, 0.1);
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
}

.result-scenario {
    display: flex;
    gap: 1.2rem;
    padding: 1.2rem;
    border-radius: 14px;
    margin-bottom: 0.8rem;
    transition: background 0.3s;
    align-items: flex-start;
}

.result-scenario:hover {
    background: var(--bg-light);
}

.scenario-medal {
    font-size: 1.8rem;
    flex-shrink: 0;
    width: 44px;
    text-align: center;
}

.scenario-details {
    flex: 1;
}

.scenario-title {
    font-weight: 700;
    color: var(--secondary);
    font-size: 0.95rem;
    margin-bottom: 0.7rem;
}

.scenario-title.dim {
    color: var(--text-light);
    opacity: 0.7;
}

.scenario-kpis {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.scenario-kpi {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.scenario-kpi .kpi-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-light);
    min-width: 80px;
}

.scenario-kpi .kpi-bar-track {
    flex: 1;
    height: 10px;
    background: var(--bg-light);
    border-radius: 5px;
    overflow: hidden;
}

.scenario-kpi .kpi-bar-fill {
    height: 100%;
    border-radius: 5px;
    width: 0%;
    transition: width 1.2s ease;
}

.scenario-kpi .kpi-bar-fill.gold {
    background: linear-gradient(90deg, #d4a017, #f0c040);
}

.scenario-kpi .kpi-bar-fill.silver {
    background: linear-gradient(90deg, #8a8a8a, #b8b8b8);
}

.scenario-kpi .kpi-bar-fill.bronze {
    background: linear-gradient(90deg, #a0522d, #cd7f32);
}

.scenario-kpi .kpi-bar-fill.current {
    background: linear-gradient(90deg, #ccc, #ddd);
}

.kpi-val {
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--primary);
    min-width: 42px;
    text-align: right;
}

.kpi-val.dim {
    color: var(--text-light);
    opacity: 0.6;
}

.scenario-delta {
    margin-top: 0.5rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--primary);
    padding: 0.2rem 0.6rem;
    background: rgba(35, 181, 116, 0.08);
    border-radius: 8px;
    display: inline-block;
}

.result-separator {
    height: 2px;
    background: var(--bg-light);
    margin: 0.5rem 0;
}

.current-scenario {
    opacity: 0.7;
}

.result-ai-insight {
    margin-top: 1.5rem;
    padding: 1.2rem;
    background: linear-gradient(135deg, rgba(35, 181, 116, 0.06), rgba(0, 114, 91, 0.06));
    border-radius: 14px;
    border-left: 4px solid var(--primary);
}

.ai-insight-header {
    font-weight: 700;
    color: var(--secondary);
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.result-ai-insight p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.7;
}

/* ---------- ANIMATIONS ---------- */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-content p { margin: 0 auto 2rem; }
    .hero-buttons { justify-content: center; }
    .hero-visual { display: none; }
    .hero-content h1 { font-size: 2.6rem; }
    .kpi-grid { grid-template-columns: repeat(2, 1fr); }
    .promise-grid { grid-template-columns: repeat(2, 1fr); }
    .usecases-grid { grid-template-columns: repeat(2, 1fr); }
    .simulation-grid { grid-template-columns: 1fr; }
    .advantages-grid { grid-template-columns: 1fr; }
    .workflow-steps { grid-template-columns: repeat(2, 1fr); }
    .workflow-steps::before { display: none; }
    .footer-content { grid-template-columns: 1fr; }
    .demo-sim-wrapper { grid-template-columns: 1fr; }
    .demo-sim-form { position: static; }
}

@media (max-width: 768px) {
    .horus-topbar { padding: 0.25rem 0; font-size: 0.72rem; }
    .horus-topbar-logo { height: 16px; }
    .horus-topbar-url { display: none; }
    .navbar { top: 28px; }
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 1.5rem;
        gap: 0;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        border-radius: 0 0 16px 16px;
    }
    .nav-links.active { display: flex; }
    .nav-links a {
        color: var(--text) !important;
        padding: 0.8rem 0;
        display: block;
    }
    .hamburger { display: flex; }
    .hero-content h1 { font-size: 2rem; }
    .section-header h2 { font-size: 2rem; }
    .kpi-grid { grid-template-columns: 1fr 1fr; }
    .promise-grid { grid-template-columns: 1fr; }
    .usecases-grid { grid-template-columns: 1fr; }
    .workflow-steps { grid-template-columns: 1fr; }
    .demo-sim-wrapper { grid-template-columns: 1fr; }
}
