/* ==========================================================================
   DESIGN SYSTEM & VARIABLES
   ========================================================================== */
:root {
    /* Colors */
    --bg-dark: #030303;
    --bg-card: rgba(15, 15, 15, 0.8);
    --bg-card-hover: rgba(25, 25, 25, 0.95);
    --border-color: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(99, 102, 241, 0.4);
    
    --primary: #6366f1;         /* Indigo */
    --primary-glow: rgba(99, 102, 241, 0.15);
    --secondary: #00f2fe;       /* Cyan Neon */
    --secondary-glow: rgba(0, 242, 254, 0.15);
    
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    --success: #10b981;
    --info: #0ea5e9;
    --warning: #f59e0b;
    --danger: #ef4444;

    /* Fonts */
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

    /* Spacings & Layout */
    --container-width: 1200px;
    --header-height: 80px;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
}

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

/* Background Gradients & Effects */
.glow-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    overflow: hidden;
    pointer-events: none;
}

.glow-bg::before, .glow-bg::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(130px);
    opacity: 0.08;
}

.glow-bg::before {
    top: -10%;
    right: -10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
}

.glow-bg::after {
    bottom: -10%;
    left: -10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, var(--secondary) 0%, transparent 70%);
}

.grid-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
    background-size: 50px 50px;
    background-position: center center;
    pointer-events: none;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.25;
    color: #ffffff;
}

h1 {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 2.25rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

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

a:hover {
    color: var(--secondary);
}

/* ==========================================================================
   UTILITIES & COMPONENTS
   ========================================================================== */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

section {
    padding: 100px 0;
    position: relative;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem auto;
}

.section-header h2 {
    position: relative;
    display: inline-block;
    padding-bottom: 0.5rem;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 25%;
    width: 50%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 2px;
}

.section-header p {
    font-size: 1.125rem;
    margin-top: 1rem;
}

.section-tag {
    display: inline-block;
    text-transform: uppercase;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--secondary);
    margin-bottom: 0.75rem;
}

/* Glassmorphism Card Base */
.glass-panel {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.75rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, #4f46e5 100%);
    color: #ffffff;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(99, 102, 241, 0.45), 0 0 15px rgba(0, 242, 254, 0.2);
}

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

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.2);
}

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

.btn-outline:hover {
    border-color: var(--secondary);
    color: var(--secondary);
    background: rgba(0, 242, 254, 0.05);
}

.btn svg {
    width: 18px;
    height: 18px;
}

/* ==========================================================================
   HEADER / NAVBAR
   ========================================================================== */
header {
    height: var(--header-height);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    transition: var(--transition);
    border-bottom: 1px solid transparent;
}

header.scrolled {
    background: rgba(8, 9, 13, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    height: 70px;
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: #ffffff;
    display: flex;
    align-items: center;
    letter-spacing: -0.01em;
}

.logo-img {
    height: 48px;
    width: auto;
    object-fit: contain;
    transition: var(--transition);
}

header.scrolled .logo-img {
    height: 40px;
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding: 0.25rem 0;
}

.nav-link:hover, .nav-link.active {
    color: #ffffff;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--secondary), var(--primary));
    transition: var(--transition);
}

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

.nav-cta-group {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.hamburger {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    width: 48px;
    height: 48px;
    padding: 12px;
    z-index: 101; /* Ensure hamburger close icon stays on top of open mobile menu */
    margin-right: -12px; /* Pulls the button slightly to align visually with container */
}

.hamburger .bar {
    width: 24px;
    height: 2px;
    background-color: #ffffff;
    transition: var(--transition);
}

/* Hamburger active transformation */
.hamburger.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}
.hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
    padding-top: 160px;
    padding-bottom: 80px;
}

.hero-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 850px;
    margin: 0 auto;
}

.hero-content h1 {
    line-height: 1.15;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    color: var(--text-primary);
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.tag-pulse {
    width: 8px;
    height: 8px;
    background-color: var(--secondary);
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(0, 242, 254, 0.7);
    animation: pulse 1.8s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(0, 242, 254, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 8px rgba(0, 242, 254, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(0, 242, 254, 0);
    }
}

.hero-description {
    font-size: 1.25rem;
    color: #e2e8f0;
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.hero-subdescription {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

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

/* Hero Visual / Console Mockup */
.interactive-preview-card {
    background: rgba(10, 11, 18, 0.85);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.preview-header {
    background: rgba(18, 20, 32, 0.8);
    padding: 0.75rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.preview-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.preview-dots span:nth-child(1) { background-color: #ef4444; }
.preview-dots span:nth-child(2) { background-color: #eab308; }
.preview-dots span:nth-child(3) { background-color: #22c55e; }

.preview-title {
    font-family: monospace;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.preview-body {
    padding: 1.5rem;
    font-family: monospace;
    font-size: 0.85rem;
}

.terminal-line {
    margin-bottom: 0.5rem;
    display: flex;
    gap: 0.5rem;
}

.term-prompt {
    color: var(--primary);
}

.term-cmd {
    color: #ffffff;
}

.text-success { color: var(--success); }
.text-info { color: var(--info); }
.text-muted { color: var(--text-muted); }

/* Mini Flow Visualization Inside Hero */
.animated-nodes-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 2rem 0;
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--radius-sm);
    padding: 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.02);
    position: relative;
}

.node-item {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 0.5rem 0.75rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    min-width: 80px;
    z-index: 2;
}

.node-item.trigger {
    border-color: var(--secondary);
    box-shadow: 0 0 10px rgba(0, 242, 254, 0.1);
}

.node-item.processor {
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.1);
}

.node-icon {
    font-size: 1.2rem;
    color: var(--text-primary);
}

.node-item.trigger .node-icon { color: var(--secondary); }
.node-item.processor .node-icon { color: var(--primary); }

.node-icon svg {
    width: 20px;
    height: 20px;
}

.node-text {
    font-size: 0.7rem;
    color: var(--text-secondary);
}

.node-arrow-flow {
    flex-grow: 1;
    height: 2px;
    background: rgba(255, 255, 255, 0.08);
    position: relative;
    margin: 0 10px;
}

.flow-dot {
    position: absolute;
    width: 6px;
    height: 6px;
    background-color: var(--secondary);
    border-radius: 50%;
    top: -2px;
    left: 0;
    box-shadow: 0 0 8px var(--secondary);
    animation: run-flow 2s infinite linear;
}

.flow-dot.animate-delay-1 {
    background-color: var(--primary);
    box-shadow: 0 0 8px var(--primary);
    animation-delay: 1s;
}

@keyframes run-flow {
    0% { left: 0%; }
    100% { left: 100%; }
}

.node-group-destinations {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.node-item.dest {
    flex-direction: row;
    min-width: 100px;
    padding: 0.4rem 0.6rem;
}

.node-icon.success { color: var(--success); }
.node-icon.info { color: var(--info); }

.terminal-stats {
    display: flex;
    gap: 1.5rem;
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
    margin-top: 1.5rem;
}

.stat-mini {
    display: flex;
    flex-direction: column;
}

.stat-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.stat-val {
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
}

/* ==========================================================================
   SOLUTIONS SECTION
   ========================================================================== */
.solutions-section {
    background: relative;
}

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

.solution-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 2.5rem 2rem;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.solution-card:hover {
    transform: translateY(-5px);
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4), 0 0 20px rgba(99, 102, 241, 0.05);
}

.card-glow {
    position: absolute;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
    top: -75px;
    left: -75px;
    border-radius: 50%;
    pointer-events: none;
    transition: var(--transition);
}

.solution-card:hover .card-glow {
    background: radial-gradient(circle, var(--secondary-glow) 0%, transparent 70%);
    width: 200px;
    height: 200px;
}

.solution-icon {
    width: 54px;
    height: 54px;
    border-radius: var(--radius-sm);
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(99, 102, 241, 0.2);
    transition: var(--transition);
}

.solution-card:hover .solution-icon {
    background: rgba(0, 242, 254, 0.1);
    color: var(--secondary);
    border-color: rgba(0, 242, 254, 0.2);
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.2);
}

.solution-icon svg {
    width: 26px;
    height: 26px;
}

.solution-card h3 {
    margin-bottom: 1rem;
    font-size: 1.35rem;
}

.solution-card p {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.solution-features {
    list-style: none;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.solution-features li {
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.solution-features li svg {
    width: 14px;
    height: 14px;
    color: var(--secondary);
}

/* ==========================================================================
   INTERACTIVE PLAYGROUND SECTION
   ========================================================================== */
.playground-section {
    background: rgba(255, 255, 255, 0.01);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.playground-tabs-header {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.tab-btn {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 1rem 2rem;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    transition: var(--transition);
}

.tab-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
}

.tab-btn.active {
    background: rgba(99, 102, 241, 0.1);
    border-color: var(--primary);
    color: #ffffff;
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.15);
}

.tab-btn svg {
    width: 20px;
    height: 20px;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
    animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.playground-grid {
    display: grid;
    grid-template-columns: 4fr 6fr;
    gap: 3rem;
    align-items: start;
}

.playground-controls {
    background: rgba(18, 20, 32, 0.4);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 2.5rem;
}

.playground-controls h3 {
    margin-bottom: 0.5rem;
}

.controls-desc {
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.trigger-selectors {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.trigger-btn {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    text-align: left;
    transition: var(--transition);
}

.trigger-btn svg {
    color: var(--text-secondary);
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    transition: var(--transition);
}

.trigger-btn strong {
    display: block;
    color: #ffffff;
    font-size: 0.95rem;
    font-family: var(--font-heading);
}

.trigger-btn span {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.trigger-btn:hover {
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.04);
}

.trigger-btn.active {
    background: rgba(0, 242, 254, 0.06);
    border-color: var(--secondary);
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.08);
}

.trigger-btn.active svg {
    color: var(--secondary);
    transform: scale(1.1);
}

.action-trigger-box {
    text-align: center;
}

.action-trigger-box button {
    width: 100%;
}

/* Playground Display Area */
.playground-display {
    background: rgba(10, 11, 18, 0.9);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    overflow: hidden;
}

.display-header {
    background: rgba(18, 20, 32, 0.85);
    padding: 0.75rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

.display-header .circle {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.display-header .circle.red { background-color: #ef4444; }
.display-header .circle.yellow { background-color: #eab308; }
.display-header .circle.green { background-color: #22c55e; }

.display-header .title {
    margin-left: 0.5rem;
    font-family: monospace;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.display-content {
    padding: 2rem;
}

/* FLOW ANIMATIONS SPECIFICS */
.flow-board {
    display: grid;
    grid-template-columns: 3fr 2.5fr 4.5fr;
    gap: 0.5rem;
    align-items: center;
    margin-bottom: 1.5rem;
    min-height: 260px;
}

.flow-column {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.flow-node {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: var(--transition);
}

.flow-node.active-trigger {
    background: rgba(0, 242, 254, 0.04);
    border-color: var(--secondary);
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.1);
}

.node-icon-wrapper {
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #ffffff;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.flow-node.active-trigger .node-icon-wrapper {
    background: rgba(0, 242, 254, 0.1);
    border-color: rgba(0, 242, 254, 0.2);
    color: var(--secondary);
}

.node-name {
    font-size: 0.85rem;
    font-weight: 600;
}

.connector-column {
    position: relative;
    height: 250px;
}

.flow-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
}

.flow-path {
    fill: none;
    stroke: rgba(255, 255, 255, 0.06);
    stroke-width: 2;
    transition: var(--transition);
}

/* Pulsing / flowing state on success */
.flow-path.active {
    stroke: var(--primary);
    stroke-dasharray: 6 6;
    animation: dash-flow 1.5s linear infinite;
}

.flow-path.active.secondary-path {
    stroke: var(--secondary);
}

@keyframes dash-flow {
    to {
        stroke-dashoffset: -20;
    }
}

.destinations-column {
    gap: 0.75rem;
}

.destination-node {
    opacity: 0.4;
    transform: scale(0.97);
}

.destination-node.triggered {
    opacity: 1;
    transform: scale(1);
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.15);
}

.destination-node.triggered.whatsapp-node { border-color: rgba(16, 185, 129, 0.3); box-shadow: 0 0 10px rgba(16, 185, 129, 0.1); }
.destination-node.triggered.sheets-node { border-color: rgba(14, 165, 233, 0.3); box-shadow: 0 0 10px rgba(14, 165, 233, 0.1); }
.destination-node.triggered.crm-node { border-color: rgba(245, 158, 11, 0.3); box-shadow: 0 0 10px rgba(245, 158, 11, 0.1); }
.destination-node.triggered.email-node { border-color: rgba(239, 68, 68, 0.3); box-shadow: 0 0 10px rgba(239, 68, 68, 0.1); }

.node-icon-wrapper.success { color: var(--success); }
.node-icon-wrapper.info { color: var(--info); }
.node-icon-wrapper.warning { color: var(--warning); }
.node-icon-wrapper.danger { color: var(--danger); }

.node-details {
    display: flex;
    flex-direction: column;
}

.node-details strong {
    font-size: 0.85rem;
    color: #ffffff;
}

.node-msg {
    font-size: 0.7rem;
    color: var(--text-secondary);
}

.playground-logs {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 1rem;
    max-height: 120px;
    overflow-y: auto;
    font-family: monospace;
    font-size: 0.75rem;
}

.log-line {
    margin-bottom: 0.4rem;
    line-height: 1.4;
    animation: logFadeIn 0.3s ease-out;
}

@keyframes logFadeIn {
    from { opacity: 0; transform: translateX(-5px); }
    to { opacity: 1; transform: translateX(0); }
}

/* ==========================
   DASHBOARD SIMULATOR STYLE
   ========================== */
.db-select {
    width: 100%;
    background: rgba(8, 9, 13, 0.8);
    border: 1px solid var(--border-color);
    color: #ffffff;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    outline: none;
    font-family: var(--font-body);
    font-size: 0.9rem;
    margin-top: 0.5rem;
    transition: var(--transition);
}

.db-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.15);
}

.filter-group {
    margin-bottom: 1.5rem;
}

.filter-group label {
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 0.05em;
}

.dashboard-features-info {
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
    margin-top: 1.5rem;
}

.feature-bullet {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}

.feature-bullet svg {
    color: var(--secondary);
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 2px;
}

.feature-bullet span {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* Mockup Panel */
.dashboard-mockup {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.db-mockup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
}

.db-title-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.db-icon {
    color: var(--primary);
    width: 20px;
    height: 20px;
}

.db-title-group strong {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    color: #ffffff;
}

.db-badge {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.2rem 0.6rem;
    border-radius: 50px;
    border: 1px solid rgba(16, 185, 129, 0.2);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.db-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    background-color: var(--success);
    border-radius: 50%;
}

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

.metric-box {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 1rem;
    display: flex;
    flex-direction: column;
}

.m-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.m-value {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0.25rem 0;
    transition: var(--transition);
}

.m-change {
    font-size: 0.7rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 2px;
}

.m-change.positive { color: var(--success); }
.m-change svg {
    width: 10px;
    height: 10px;
}

.db-chart-container {
    background: rgba(0, 0, 0, 0.15);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 1.25rem;
}

.db-chart-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.db-chart-header .legend {
    display: flex;
    align-items: center;
    gap: 4px;
}

.db-chart-header .legend .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.db-chart-header .legend .dot.primary { background-color: var(--primary); }

.svg-chart-wrapper {
    height: 140px;
}

#svg-chart rect {
    transition: height 0.5s ease-out, y 0.5s ease-out;
}

/* ==========================================================================
   WHY CHOOSE US & PILLARS
   ========================================================================== */
.why-choose-section {
    position: relative;
    border-bottom: 1px solid var(--border-color);
}

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

.why-lead {
    font-size: 1.15rem;
    color: #ffffff;
    margin-bottom: 1rem;
}

.why-stats-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
}

.why-stat-box h3 {
    font-family: var(--font-heading);
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--secondary);
    margin-bottom: 0.25rem;
    text-shadow: 0 0 10px rgba(0, 242, 254, 0.1);
}

.why-stat-box span {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.why-pillars {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.pillar-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 1.5rem;
    display: flex;
    gap: 1.25rem;
    transition: var(--transition);
}

.pillar-card:hover {
    border-color: var(--border-hover);
    transform: translateX(4px);
    background: var(--bg-card-hover);
}

.pillar-icon {
    width: 44px;
    height: 44px;
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid rgba(99, 102, 241, 0.15);
    transition: var(--transition);
}

.pillar-card:hover .pillar-icon {
    color: var(--secondary);
    background: rgba(0, 242, 254, 0.1);
    border-color: rgba(0, 242, 254, 0.15);
}

.pillar-icon svg {
    width: 20px;
    height: 20px;
}

.pillar-card h4 {
    margin-bottom: 0.25rem;
    font-size: 1.1rem;
}

.pillar-card p {
    font-size: 0.88rem;
    margin-bottom: 0;
}

/* ==========================================================================
   ABOUT SECTION
   ========================================================================== */
.about-section {
    background: relative;
    border-bottom: 1px solid var(--border-color);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: start;
}

.about-lead {
    font-size: 1.25rem;
    color: #e2e8f0;
    margin-bottom: 1.5rem;
}

.about-quote {
    border-left: 3px solid var(--secondary);
    padding-left: 1.25rem;
    margin-top: 2rem;
    font-style: italic;
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.01);
    padding: 1rem 1rem 1rem 1.5rem;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.team-showcase {
    background: rgba(18, 20, 32, 0.4);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 2.5rem;
}

.team-title {
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
}

.team-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.team-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 1.25rem;
    display: flex;
    gap: 1.25rem;
    transition: var(--transition);
}

.team-card:hover {
    border-color: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

.team-avatar {
    flex-shrink: 0;
}

.avatar-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 10px rgba(99, 102, 241, 0.2);
    transition: var(--transition);
    background-color: var(--bg-dark);
}

.team-card:hover .avatar-img {
    transform: scale(1.05);
    border-color: var(--secondary);
    box-shadow: 0 4px 15px rgba(0, 242, 254, 0.25);
}

.team-details h4 {
    font-size: 1.05rem;
    margin-bottom: 0.15rem;
}

.team-details .role {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--secondary);
    font-weight: 600;
    margin-bottom: 0.5rem;
    letter-spacing: 0.05em;
}

.team-details p {
    font-size: 0.85rem;
    margin-bottom: 0;
    line-height: 1.5;
}

/* ==========================================================================
   FAQ SECTION
   ========================================================================== */
.faq-section {
    border-bottom: 1px solid var(--border-color);
}

.faq-accordion-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    overflow: hidden;
    transition: var(--transition);
}

.faq-question {
    width: 100%;
    background: transparent;
    border: none;
    color: #ffffff;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    padding: 1.5rem;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    transition: var(--transition);
}

.faq-question:hover {
    background: rgba(255, 255, 255, 0.02);
}

.faq-item.active {
    border-color: rgba(99, 102, 241, 0.3);
}

.faq-icon {
    width: 18px;
    height: 18px;
    color: var(--text-secondary);
    transition: var(--transition);
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
    color: var(--secondary);
}

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

.faq-answer-inner {
    padding: 0 1.5rem 1.5rem 1.5rem;
    border-top: 1px solid transparent;
}

.faq-item.active .faq-answer-inner {
    border-top-color: var(--border-color);
}

.faq-answer p {
    font-size: 0.95rem;
    margin-bottom: 0;
    line-height: 1.6;
}

/* ==========================================================================
   CONTACT & DIAGNOSTIC SECTION
   ========================================================================== */
.contact-section {
    background: relative;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 5rem;
    align-items: start;
}

.contact-lead {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.contact-channels {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 3rem;
}

.channel-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 1.15rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    transition: var(--transition);
}

.channel-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.15);
    background: var(--bg-card-hover);
}

.channel-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border-color);
}

.channel-icon svg {
    width: 20px;
    height: 20px;
}

.channel-icon.success { color: var(--success); background: rgba(16, 185, 129, 0.08); border-color: rgba(16, 185, 129, 0.15); }
.channel-icon.info { color: var(--info); background: rgba(14, 165, 233, 0.08); border-color: rgba(14, 165, 233, 0.15); }
.channel-icon.danger { color: var(--danger); background: rgba(239, 68, 68, 0.08); border-color: rgba(239, 68, 68, 0.15); }

.channel-card:hover .channel-icon.success { box-shadow: 0 0 10px rgba(16, 185, 129, 0.2); }
.channel-card:hover .channel-icon.info { box-shadow: 0 0 10px rgba(14, 165, 233, 0.2); }
.channel-card:hover .channel-icon.danger { box-shadow: 0 0 10px rgba(239, 68, 68, 0.2); }

.channel-details {
    display: flex;
    flex-direction: column;
}

.channel-name {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--text-secondary);
    font-weight: 600;
    letter-spacing: 0.05em;
}

.channel-value {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 600;
    color: #ffffff;
}

.addresses-box h3 {
    font-size: 1.2rem;
    margin-bottom: 1.25rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.address-item {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.address-item svg {
    color: var(--secondary);
    width: 18px;
    height: 18px;
    margin-top: 4px;
    flex-shrink: 0;
}

.address-item p {
    font-size: 0.9rem;
    margin-bottom: 0;
    line-height: 1.4;
}

/* DIAGNOSTIC WIZARD STYLING */
.diagnostic-box {
    background: rgba(18, 20, 32, 0.4);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    min-height: 520px;
    position: relative;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.diagnostic-header h3 {
    font-size: 1.4rem;
    margin-bottom: 0.25rem;
}

.diagnostic-header p {
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
}

.diagnostic-progress {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50px;
    margin-bottom: 2rem;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 50px;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.diagnostic-steps-wrapper {
    flex-grow: 1;
    position: relative;
}

.diagnostic-step {
    display: none;
}

.diagnostic-step.active {
    display: block;
    animation: stepIn 0.3s ease-out;
}

@keyframes stepIn {
    from { opacity: 0; transform: translateX(10px); }
    to { opacity: 1; transform: translateX(0); }
}

.step-num {
    display: inline-block;
    font-size: 0.75rem;
    color: var(--secondary);
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: 0.05em;
}

.diagnostic-step h4 {
    font-size: 1.15rem;
    margin-bottom: 1.5rem;
}

.diag-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.diag-option {
    cursor: pointer;
    position: relative;
}

.diag-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.option-card {
    display: flex;
    flex-direction: column;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 1rem 1.25rem;
    position: relative;
    transition: var(--transition);
}

.option-card .bullet {
    position: absolute;
    width: 16px;
    height: 16px;
    border: 2px solid var(--text-muted);
    border-radius: 50%;
    right: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    transition: var(--transition);
}

.diag-option input[type="radio"]:checked + .option-card {
    border-color: var(--secondary);
    background: rgba(0, 242, 254, 0.04);
}

.diag-option input[type="radio"]:checked + .option-card .bullet {
    border-color: var(--secondary);
    background-color: var(--secondary);
    box-shadow: 0 0 10px rgba(0, 242, 254, 0.4);
}

.option-card strong {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    color: #ffffff;
    padding-right: 2rem;
}

.option-card span {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 0.2rem;
    padding-right: 2rem;
}

.diagnostic-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
}

.diagnostic-footer .btn {
    min-width: 120px;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
footer {
    background: rgba(5, 6, 9, 0.95);
    border-top: 1px solid var(--border-color);
    padding-top: 80px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand .footer-logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 1.25rem;
    display: inline-block;
}

.footer-brand p {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    max-width: 380px;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--secondary);
    background: rgba(0, 242, 254, 0.06);
    border-color: var(--secondary);
    transform: translateY(-2px);
}

.social-links a svg {
    width: 18px;
    height: 18px;
}

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

.footer-links-column h4 {
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.footer-links-column a {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-links-column a:hover {
    color: #ffffff;
    padding-left: 2px;
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding: 1.5rem 0;
}

.bottom-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ==========================================================================
   MODAL (PRIVACY POLICY)
   ========================================================================== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 200;
    background-color: rgba(5, 6, 9, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}

.modal.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background-color: #0e1017;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 24px 48px rgba(0,0,0,0.5);
    transform: scale(0.95);
    transition: var(--transition);
}

.modal.active .modal-content {
    transform: scale(1);
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-close {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.75rem;
    cursor: pointer;
    line-height: 1;
}

.modal-close:hover {
    color: #ffffff;
}

.modal-body {
    padding: 1.5rem;
}

.modal-body h4 {
    margin: 1.25rem 0 0.5rem 0;
}

.modal-body p {
    font-size: 0.9rem;
    line-height: 1.5;
}

/* body lock for mobile menu and modals */
html.no-scroll, body.no-scroll {
    overflow: hidden !important;
    height: 100vh !important;
    touch-action: none; /* disables scrolling gestures */
}

/* ==========================================================================
   PORTFOLIO SECTION
   ========================================================================== */
.portfolio-section {
    background: relative;
    border-bottom: 1px solid var(--border-color);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
    margin-top: 1.5rem;
    margin-bottom: 4rem;
}

.portfolio-project-card {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    padding: 3rem 2.5rem;
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 480px;
}

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

.logistics-project {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.04) 0%, rgba(5, 5, 5, 0.98) 100%);
}

.logistics-project:hover {
    border-color: rgba(245, 158, 11, 0.35);
    box-shadow: 0 15px 35px rgba(245, 158, 11, 0.05);
}

.sales-project {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.04) 0%, rgba(5, 5, 5, 0.98) 100%);
}

.sales-project:hover {
    border-color: rgba(99, 102, 241, 0.35);
    box-shadow: 0 15px 35px rgba(99, 102, 241, 0.05);
}

.project-tags {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.project-tag-badge {
    font-size: 0.72rem;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.project-tag-badge.tag-amber {
    color: #f59e0b;
    border-color: rgba(245, 158, 11, 0.25);
    background: rgba(245, 158, 11, 0.06);
}

.project-tag-badge.tag-indigo {
    color: #818cf8;
    border-color: rgba(129, 140, 248, 0.25);
    background: rgba(129, 140, 248, 0.06);
}

.portfolio-project-card h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: #ffffff;
}

.project-summary {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 2rem;
}

.project-preview-mockup {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    padding: 1.25rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    height: 110px;
    overflow: hidden;
}

.mockup-kpi-bar {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex-shrink: 0;
}

.mock-kpi {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.mock-kpi .m-val {
    font-size: 1.15rem;
    font-weight: 700;
    color: #ffffff;
}

.mock-kpi .m-lbl {
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 600;
}

.mockup-chart-bars {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    height: 60px;
}

.m-bar {
    width: 8px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.logistics-project:hover .m-bar {
    background: #f59e0b;
    box-shadow: 0 0 8px rgba(245, 158, 11, 0.4);
}

.mockup-chart-funnel {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 80px;
    align-items: flex-end;
}

.m-funnel-layer {
    height: 10px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.sales-project:hover .m-funnel-layer {
    background: #6366f1;
    box-shadow: 0 0 8px rgba(99, 102, 241, 0.4);
}

.project-action-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: #ffffff;
    transition: var(--transition);
}

.portfolio-project-card:hover .project-action-btn {
    color: var(--secondary);
}

.portfolio-project-card:hover .project-action-btn svg {
    transform: translate(2px, -2px);
}

/* Modals layout for dashboards */
.portfolio-pane {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1000;
    background: rgba(3, 3, 3, 0.95);
    backdrop-filter: blur(12px);
    overflow-y: auto;
    padding: 4rem 2rem;
}

.portfolio-pane.active {
    display: block;
    animation: fadeIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.case-info {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 2.5rem auto;
}

.case-info h3 {
    font-size: 1.65rem;
    margin-bottom: 0.75rem;
    color: #ffffff;
}

.case-info p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.portfolio-dashboard-wrapper {
    padding: 2rem;
    border-radius: var(--radius-md);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.db-filters {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.db-filter-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.db-filter-item label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.portfolio-db-select {
    background: rgba(17, 19, 28, 0.8);
    border: 1px solid var(--border-color);
    color: #ffffff;
    padding: 0.4rem 2.2rem 0.4rem 0.75rem;
    border-radius: 6px;
    outline: none;
    font-family: var(--font-body);
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 14px;
}

.portfolio-db-select:focus {
    border-color: var(--secondary);
    box-shadow: 0 0 10px rgba(0, 242, 254, 0.15);
}

.portfolio-db-select option {
    background-color: #0e1017;
    color: #ffffff;
}

.portfolio-kpis-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.portfolio-kpi-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    transition: var(--transition);
}

.portfolio-kpi-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.04);
}

.kpi-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.kpi-value {
    font-family: var(--font-heading);
    font-size: 1.65rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0.25rem 0;
}

.kpi-meta {
    font-size: 0.72rem;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-weight: 500;
}

.portfolio-db-layout {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 2rem;
}

.portfolio-chart-box, .portfolio-table-box {
    background: rgba(0, 0, 0, 0.15);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 1.25rem;
}

.chart-title, .table-title {
    display: block;
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 1.25rem;
    letter-spacing: 0.05em;
}

.chart-legends {
    display: flex;
    justify-content: center;
    gap: 1.25rem;
    margin-top: 1rem;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.legend-item .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.legend-item .dot.primary { background-color: var(--primary); }
.legend-item .dot.danger { background-color: var(--danger); }

.portfolio-table {
    width: 100%;
    border-collapse: collapse;
}

.portfolio-table th, .portfolio-table td {
    padding: 0.75rem 0.5rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.portfolio-table th {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 600;
}

.portfolio-table td {
    font-size: 0.85rem;
    color: #ffffff;
}

.portfolio-table tr:last-child td {
    border-bottom: none;
}

.portfolio-table td .status-tag {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.15rem 0.5rem;
    border-radius: 50px;
}

.portfolio-table td .status-tag.success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.portfolio-table td .status-tag.info {
    background: rgba(14, 165, 233, 0.1);
    color: var(--info);
    border: 1px solid rgba(14, 165, 233, 0.2);
}

/* Funnel chart stylings */
.funnel-container {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    padding: 0.5rem 0;
}

.funnel-stage {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.stage-bar {
    height: 28px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 12px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.stage-bar.stage-1 {
    background: linear-gradient(90deg, #4f46e5, #6366f1);
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.15);
}

.stage-bar.stage-2 {
    background: linear-gradient(90deg, #3b82f6, #60a5fa);
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.15);
}

.stage-bar.stage-3 {
    background: linear-gradient(90deg, #0ea5e9, #00f2fe);
    box-shadow: 0 0 10px rgba(0, 242, 254, 0.15);
}

.stage-val {
    font-family: monospace;
    font-size: 0.8rem;
    font-weight: 700;
    color: #ffffff;
}

/* Case 3 WhatsApp Integration layouts */
.whatsapp-mockup-layout {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: center;
    max-width: 900px;
    margin: 0 auto;
}

.flow-steps-column {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.flow-step-item {
    display: flex;
    gap: 1.25rem;
}

.step-badge {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
    box-shadow: 0 0 10px rgba(0, 242, 254, 0.2);
}

.flow-step-item h4 {
    font-size: 1.05rem;
    margin-bottom: 0.25rem;
}

.flow-step-item p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    margin-bottom: 0;
}

.phone-mockup-card {
    background: #0b0c10;
    border: 10px solid #20222e;
    border-radius: 36px;
    width: 100%;
    max-width: 290px;
    margin: 0 auto;
    padding: 1rem 0.8rem 0.8rem 0.8rem;
    box-shadow: 0 20px 40px rgba(0,0,0,0.6);
    position: relative;
}

.phone-header {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.75rem;
    text-align: center;
    margin-bottom: 0.75rem;
}

.phone-camera {
    display: block;
    width: 40px;
    height: 6px;
    background: #20222e;
    border-radius: 50px;
    margin: -10px auto 10px auto;
}

.phone-contact-name {
    font-size: 0.8rem;
    font-weight: 700;
    color: #ffffff;
}

.phone-chat-body {
    height: 250px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 0.5rem;
    scrollbar-width: none;
}

.phone-chat-body::-webkit-scrollbar {
    display: none;
}

.chat-message {
    padding: 0.55rem 0.8rem;
    border-radius: 12px;
    font-size: 0.72rem;
    line-height: 1.4;
    max-width: 85%;
    word-wrap: break-word;
}

.chat-message.received {
    background: rgba(255, 255, 255, 0.05);
    color: #e2e8f0;
    border-bottom-left-radius: 2px;
    align-self: flex-start;
}

.chat-message.sent {
    background: linear-gradient(135deg, var(--primary) 0%, #4f46e5 100%);
    color: #ffffff;
    border-bottom-right-radius: 2px;
    align-self: flex-end;
}

.phone-footer {
    display: flex;
    justify-content: center;
    margin-top: 0.75rem;
}

.phone-home-indicator {
    width: 60px;
    height: 4px;
    background: #20222e;
    border-radius: 50px;
}

/* ==========================================================================
   MEDIA QUERIES (RESPONSIVENESS)
   ========================================================================== */
@media (max-width: 1024px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .hero-visual {
        max-width: 600px;
        margin: 0 auto;
        width: 100%;
    }
    
    .solutions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .playground-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .why-grid, .about-grid, .contact-grid {
        grid-template-columns: 1fr;
        gap: 3.5rem;
    }
}

@media (max-width: 768px) {
    section {
        padding: 60px 0;
    }
    
    h1 { 
        font-size: 1.75rem; 
        line-height: 1.2;
        margin-bottom: 1rem;
    }
    h2 { 
        font-size: 1.45rem; 
        line-height: 1.25;
    }
    
    /* Header & Hamburger menu */
    header {
        height: 64px;
    }
    
    header.scrolled {
        height: 64px;
    }
    
    .logo-img {
        height: 36px;
    }
    
    .nav-menu {
        position: fixed;
        top: 64px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 64px);
        background: #08090d; /* solid dark background prevents overlap visibility */
        flex-direction: column;
        align-items: center;
        padding: 3rem 0;
        gap: 2rem;
        transition: var(--transition);
        border-top: 1px solid var(--border-color);
        z-index: 99;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hamburger {
        display: flex;
    }
    
    .nav-cta-group .btn-outline {
        display: none; /* Hide WhatsApp button in mobile navbar to keep header clean, hamburger handles links */
    }
    
    /* Hero mobile visual layout spacing */
    .hero-section {
        padding-top: 110px;
        padding-bottom: 40px;
    }
    
    .hero-description {
        font-size: 1.05rem;
        margin-bottom: 0.5rem;
    }
    
    .hero-actions {
        flex-direction: column;
        width: 100%;
        gap: 0.75rem;
    }
    
    .hero-actions .btn {
        width: 100%;
    }
    
    .solutions-grid {
        grid-template-columns: 1fr;
    }
    
    .playground-tabs-header {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .tab-btn {
        width: 100%;
        justify-content: center;
    }
    
    .flow-board {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        min-height: auto;
    }
    
    .connector-column {
        display: none; /* Hide paths on mobile, simplify flow representation */
    }
    
    .destination-node {
        opacity: 1;
        transform: scale(1);
    }
    
    .db-metrics-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    /* Mobile paddings and proportional spacing adjustments */
    .solution-card {
        padding: 1.5rem 1.25rem;
    }

    .playground-controls, .display-content {
        padding: 1.5rem 1rem;
    }

    .diagnostic-box {
        padding: 1.5rem 1.25rem;
        min-height: auto; /* Allow box to resize properly */
    }

    .section-header {
        margin-bottom: 2.5rem;
    }

    .why-stats-strip {
        margin-top: 2rem;
        padding-top: 1.5rem;
    }

    .why-grid, .about-grid, .contact-grid {
        gap: 2.5rem; /* Tighter layout for better hierarchy */
    }
    
    .tab-btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.95rem;
    }

    /* Hero console node visualization mobile adjustments */
    .animated-nodes-container {
        padding: 0.75rem 0.5rem;
        gap: 0.25rem;
    }

    .node-item {
        min-width: 65px;
        padding: 0.4rem 0.5rem;
    }

    .node-item.dest {
        min-width: 85px;
    }

    .node-text {
        font-size: 0.6rem;
    }

    /* Mobile Portfolio adjustments */
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-bottom: 2rem;
    }

    .portfolio-project-card {
        padding: 2.25rem 1.75rem;
        min-height: 400px;
    }

    .portfolio-project-card h3 {
        font-size: 1.5rem;
    }
    
    .portfolio-pane {
        padding: 3.5rem 1.25rem;
    }
    
    .modal-db-close-btn {
        top: -2.2rem;
        right: 0.5rem;
        font-size: 2.2rem;
    }
    
    .portfolio-kpis-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
        margin-bottom: 1.5rem;
    }
    
    .portfolio-kpi-card {
        padding: 0.85rem;
    }

    .kpi-value {
        font-size: 1.25rem;
    }

    .kpi-meta {
        font-size: 0.65rem;
    }
    
    .portfolio-db-layout {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .whatsapp-mockup-layout {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .portfolio-dashboard-wrapper {
        padding: 1.25rem 1rem;
    }
    
    .portfolio-table th, .portfolio-table td {
        padding: 0.6rem 0.4rem;
        font-size: 0.78rem;
    }

    .db-mockup-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .db-filters {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
        width: 100%;
    }
    
    .db-filter-item {
        justify-content: space-between;
    }
    
    .portfolio-db-select {
        width: 60%;
    }
}

/* ==========================================================================
   PORTFOLIO MODALS OVERHAUL (INDEPENDENT APPS)
   ========================================================================== */

/* Return button / Back Arrow */
.modal-db-close-btn {
    position: fixed;
    top: 1.25rem;
    left: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(15, 15, 15, 0.7);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff !important;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    z-index: 1200;
}

.modal-db-close-btn svg {
    width: 16px;
    height: 16px;
    transition: var(--transition);
}

.modal-db-close-btn:hover {
    background: #ffffff;
    color: #030303 !important;
    border-color: #ffffff;
    transform: translateX(-3px);
}

.modal-db-close-btn:hover svg {
    transform: translateX(-2px);
}

/* Modals fullscreen override */
.logistics-app-modal, .crm-app-modal {
    padding: 0 !important;
    background: #030303;
    overflow: hidden;
}

/* --------------------------------------------------------------------------
   LOGISTICS APP (TransLog S/A) - MMRISK Inspired
   -------------------------------------------------------------------------- */
.logistics-app-container {
    display: flex;
    width: 100vw;
    height: 100vh;
    font-family: 'Outfit', sans-serif;
    color: #2b303a;
    background: #f4f6f9;
}

.logistics-app-sidebar {
    width: 240px;
    background: #ef4444; /* MMRISK vibrant red */
    display: flex;
    flex-direction: column;
    padding: 2rem 0;
    flex-shrink: 0;
    justify-content: space-between;
    height: 100%;
}

.sidebar-brand-box {
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 3rem;
}

.brand-logo-icon {
    background: #ffffff;
    color: #ef4444;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-logo-icon svg {
    width: 18px;
    height: 18px;
}

.brand-name {
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex-grow: 1;
}

.sidebar-nav .nav-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1.5rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.sidebar-nav .nav-item svg {
    width: 18px;
    height: 18px;
}

.sidebar-nav .nav-item:hover,
.sidebar-nav .nav-item.active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.15);
    border-left: 4px solid #ffffff;
    padding-left: calc(1.5rem - 4px);
}

.sidebar-footer-logo {
    display: flex;
    justify-content: center;
    padding: 1rem;
    opacity: 0.5;
}

.sidebar-footer-logo .globe-icon {
    color: #ffffff;
    width: 36px;
    height: 36px;
}

/* Workspace area */
.logistics-app-workspace {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow-y: auto;
    padding: 2rem;
}

.workspace-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-left: 5rem; /* give space for the close button floating over it */
}

.workspace-title {
    font-size: 2.2rem;
    font-weight: 900;
    color: #ef4444; /* red title */
    margin: 0;
    letter-spacing: 1px;
}

.workspace-filters {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.filter-dates {
    display: flex;
    gap: 0.5rem;
}

.filter-date-input {
    width: 100px;
    background: #ffffff;
    border: 1px solid #dcdfe6;
    border-radius: 4px;
    padding: 0.4rem 0.6rem;
    font-size: 0.85rem;
    text-align: center;
    color: #606266;
    outline: none;
}

.kpi-highlight-card {
    background: #ffffff;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    border: 1px solid #dcdfe6;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.kpi-highlight-label {
    font-size: 0.75rem;
    color: #909399;
    font-weight: 600;
}

.kpi-highlight-value {
    font-size: 1.35rem;
    font-weight: 800;
    color: #ef4444;
}

.filter-carrier {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.filter-carrier label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #909399;
}

.carrier-select {
    background: #ffffff;
    border: 1px solid #dcdfe6;
    border-radius: 4px;
    padding: 0.4rem 1.5rem 0.4rem 0.6rem;
    font-size: 0.85rem;
    color: #606266;
    outline: none;
    cursor: pointer;
}

.workspace-body {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* App Cards */
.app-card {
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid #e4e7ed;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    padding: 1.5rem;
}

.app-card .card-header {
    font-size: 1rem;
    font-weight: 700;
    color: #1f2d3d;
    margin-bottom: 1.25rem;
    border-bottom: 1px solid #f2f6fc;
    padding-bottom: 0.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-sub-header {
    font-size: 0.8rem;
    color: #909399;
    font-weight: 400;
}

/* Charts */
.daily-chart-container {
    height: 140px;
    display: flex;
    align-items: flex-end;
}

.monthly-chart-container {
    height: 160px;
}

.workspace-row-three-cols {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 1.5rem;
}

/* Tables */
.app-table-container {
    max-height: 180px;
    overflow-y: auto;
}

.app-data-table {
    width: 100%;
    border-collapse: collapse;
}

.app-data-table th {
    background: #f5f7fa;
    color: #909399;
    font-size: 0.75rem;
    font-weight: 600;
    text-align: left;
    padding: 0.5rem 0.75rem;
    position: sticky;
    top: 0;
}

.app-data-table td {
    padding: 0.5rem 0.75rem;
    font-size: 0.82rem;
    color: #606266;
    border-bottom: 1px solid #ebeef5;
}

.app-data-table tbody tr:nth-child(even) {
    background: #fafafa;
}

/* --------------------------------------------------------------------------
   CRM APP (CRM Connect) - Modern Peach/Orange Clean Light Style
   -------------------------------------------------------------------------- */
.crm-app-container {
    display: flex;
    width: 100vw;
    height: 100vh;
    font-family: 'Outfit', sans-serif;
    color: #3d3b38;
    background: #fffcf8; /* Soft warm gradient bg */
    background-image: linear-gradient(135deg, #fffcf8 0%, #fff7eb 100%);
}

.crm-app-sidebar {
    width: 240px;
    background: #ffffff;
    border-right: 1px solid #f2e9de;
    display: flex;
    flex-direction: column;
    padding: 2rem 0;
    flex-shrink: 0;
    height: 100%;
}

.crm-sidebar-brand {
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 3.5rem;
}

.crm-brand-icon {
    background: #ff7a00;
    color: #ffffff;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.crm-brand-icon svg {
    width: 18px;
    height: 18px;
}

.crm-brand-name {
    color: #1a1612;
    font-size: 1.2rem;
    font-weight: 800;
}

.crm-sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.crm-nav-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1.5rem;
    color: #8c857b;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.crm-nav-item svg {
    width: 18px;
    height: 18px;
}

.crm-nav-item:hover {
    color: #ff7a00;
    background: #fff7eb;
}

.crm-nav-item.active {
    color: #ffffff;
    background: #ff7a00;
    border-radius: 0 25px 25px 0;
    margin-right: 1rem;
}

/* CRM Workspace */
.crm-app-workspace {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow-y: auto;
    padding: 2.2rem;
}

.crm-workspace-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-left: 5rem;
}

.crm-workspace-title {
    font-size: 1.85rem;
    font-weight: 800;
    color: #1a1612;
    margin: 0;
}

.crm-search-box {
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 1px solid #eddcd0;
    border-radius: 12px;
    padding: 0.5rem 1rem;
    width: 260px;
    gap: 0.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.01);
}

.crm-search-box .search-icon {
    color: #ff7a00;
    width: 16px;
    height: 16px;
}

.crm-search-box input {
    border: none;
    outline: none;
    background: transparent;
    font-size: 0.85rem;
    color: #3d3b38;
    width: 100%;
}

.search-shortcut {
    font-size: 0.75rem;
    background: #fff7eb;
    color: #ff7a00;
    padding: 0.1rem 0.35rem;
    border-radius: 4px;
    font-weight: 700;
}

.crm-workspace-body {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.crm-filters-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.crm-date-tabs {
    display: flex;
    background: #ffffff;
    border: 1px solid #eddcd0;
    padding: 0.25rem;
    border-radius: 12px;
    gap: 0.25rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.01);
}

.date-tab-btn {
    border: none;
    background: transparent;
    padding: 0.45rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #8c857b;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

.date-tab-btn.active {
    background: #ff7a00;
    color: #ffffff;
}

.date-tab-btn .tab-icon {
    width: 14px;
    height: 14px;
}

.crm-agent-selector {
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 1px solid #eddcd0;
    border-radius: 12px;
    padding: 0.45rem 1rem;
    gap: 0.75rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.01);
    cursor: pointer;
}

.agent-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #ff7a00;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.agent-avatar svg {
    width: 12px;
    height: 12px;
}

.agent-name {
    font-size: 0.85rem;
    font-weight: 700;
    color: #1a1612;
}

.crm-agent-selector .chevron-icon {
    width: 14px;
    height: 14px;
    color: #8c857b;
}

/* KPIs cards */
.crm-kpi-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.crm-kpi-card {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #f2e9de;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.02);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.crm-kpi-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.crm-kpi-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: #8c857b;
}

.crm-kpi-badge {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.15rem 0.45rem;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.crm-kpi-badge.text-success {
    background: #e8f5e9;
    color: #2e7d32;
}

.crm-kpi-badge.text-info {
    background: #e0f7fa;
    color: #00838f;
}

.crm-kpi-badge.text-danger {
    background: #ffebee;
    color: #c62828;
}

.crm-kpi-badge svg {
    width: 10px;
    height: 10px;
}

.crm-kpi-value {
    font-size: 1.85rem;
    font-weight: 800;
    color: #1a1612;
}

/* Mid Section */
.crm-mid-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.crm-card {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #f2e9de;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.02);
    padding: 1.5rem;
}

.crm-card-header {
    font-size: 1rem;
    font-weight: 800;
    color: #1a1612;
    margin-bottom: 1.5rem;
}

/* Speedometer Gauge styling */
.gauge-chart-wrapper {
    display: flex;
    justify-content: center;
    padding: 1rem 0;
}

.gauge-chart-container {
    position: relative;
    width: 200px;
}

.speedometer-svg {
    width: 100%;
    height: auto;
}

.gauge-center-text {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.gauge-value {
    font-size: 1.6rem;
    font-weight: 900;
    color: #1a1612;
}

.gauge-label {
    font-size: 0.72rem;
    color: #8c857b;
    font-weight: 600;
    margin-top: 0.1rem;
}

/* Lead Source Card */
.lead-source-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.source-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px dashed #f2e9de;
    padding-bottom: 0.5rem;
}

.source-details {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.source-details .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.source-details .dot.orange { background: #ff7a00; }
.source-details .dot.purple { background: #ab47bc; }
.source-details .dot.black { background: #1a1612; }

.source-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: #3d3b38;
}

.source-value {
    font-size: 0.85rem;
    font-weight: 700;
    color: #1a1612;
}

.lead-source-chart {
    height: 80px;
}

.dotted-chart-svg {
    width: 100%;
    height: 100%;
}

/* Bottom Grid */
.crm-bottom-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.meetings-list, .leads-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.meeting-item {
    display: flex;
    gap: 1rem;
}

.meeting-time {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 80px;
}

.m-time {
    font-size: 0.8rem;
    font-weight: 800;
    color: #ff7a00;
}

.m-date {
    font-size: 0.7rem;
    color: #8c857b;
    font-weight: 600;
}

.meeting-info-box {
    background: #fff7eb;
    border-left: 4px solid #ff7a00;
    padding: 0.75rem 1rem;
    border-radius: 0 12px 12px 0;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.meeting-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.meeting-avatar {
    background: #ffffff;
    color: #ff7a00;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.meeting-avatar svg {
    width: 10px;
    height: 10px;
}

.meeting-title {
    font-size: 0.85rem;
    color: #1a1612;
}

.meeting-desc {
    font-size: 0.75rem;
    color: #8c857b;
    font-weight: 500;
}

/* Latest Leads Row */
.lead-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #f2e9de;
    padding-bottom: 0.75rem;
}

.lead-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.lead-user {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.lead-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #fff7eb;
    color: #ff7a00;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lead-avatar svg {
    width: 16px;
    height: 16px;
}

.lead-name-box {
    display: flex;
    flex-direction: column;
}

.lead-name-box strong {
    font-size: 0.85rem;
    color: #1a1612;
}

.lead-name-box span {
    font-size: 0.72rem;
    color: #8c857b;
}

.lead-time {
    font-size: 0.75rem;
    color: #8c857b;
    font-weight: 600;
}

/* RESPONSIVE DESIGN FOR FULLSCREEN INDEPENDENT APPS */
@media (max-width: 992px) {
    .logistics-app-container, .crm-app-container {
        flex-direction: column;
        overflow-y: auto;
        height: auto;
    }
    
    .logistics-app-sidebar, .crm-app-sidebar {
        width: 100%;
        height: auto;
        flex-direction: row;
        align-items: center;
        padding: 1rem;
    }
    
    .sidebar-brand-box, .crm-sidebar-brand {
        margin-bottom: 0;
    }
    
    .sidebar-nav, .crm-sidebar-nav {
        flex-direction: row;
        flex-grow: 0;
        margin-left: auto;
        gap: 0.5rem;
    }
    
    .sidebar-nav .nav-item span, .crm-nav-item span {
        display: none;
    }
    
    .sidebar-footer-logo {
        display: none;
    }
    
    .workspace-row-three-cols, .crm-mid-grid, .crm-bottom-grid {
        grid-template-columns: 1fr;
    }
    
    .crm-kpi-row {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .workspace-header, .crm-workspace-header {
        padding-left: 0;
        margin-top: 3.5rem; /* make space for floating close btn */
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .workspace-filters {
        flex-wrap: wrap;
        width: 100%;
    }
}

@media (max-width: 576px) {
    .crm-kpi-row {
        grid-template-columns: 1fr;
    }
}

/* --------------------------------------------------------------------------
   FASE 6: PORTFOLIO CARDS SYNCHRONIZATION & LAYOUT OPTIMIZATIONS
   -------------------------------------------------------------------------- */

/* Portfolio gallery grid override */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
    margin-bottom: 4rem;
}

/* TransLog Card (Ext) */
.portfolio-project-card.logistics-card-ext {
    display: grid;
    grid-template-columns: 70px 1fr;
    background: #f4f6f9;
    border: 1px solid #e4e7ed;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    color: #2b303a;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    text-align: left;
}

.portfolio-project-card.logistics-card-ext:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(239, 68, 68, 0.15);
}

.portfolio-project-card.logistics-card-ext h3 {
    color: #ef4444;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.portfolio-project-card.logistics-card-ext .project-summary {
    color: #555e70;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

/* CRM Card (Ext) */
.portfolio-project-card.crm-card-ext {
    display: grid;
    grid-template-columns: 70px 1fr;
    background: #fffcf8;
    border: 1px solid #f2e9de;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    color: #262421;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    text-align: left;
}

.portfolio-project-card.crm-card-ext:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(255, 122, 0, 0.15);
}

.portfolio-project-card.crm-card-ext h3 {
    color: #ff7a00;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.portfolio-project-card.crm-card-ext .project-summary {
    color: #666057;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

/* Shared Mini Sidebar Styles */
.mini-sidebar-ext {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem 0;
    justify-content: space-between;
    width: 70px;
    height: 100%;
}

.mini-sidebar-ext.red-bg {
    background: #ef4444;
    color: #ffffff;
}

.mini-sidebar-ext.white-bg {
    background: #ffffff;
    border-right: 1px solid #f2e9de;
    color: #8c857b;
}

.mini-sidebar-ext .mini-logo {
    font-size: 1.25rem;
}

.mini-sidebar-ext .mini-logo svg {
    width: 24px;
    height: 24px;
}

.mini-sidebar-ext .mini-menu-dots {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mini-sidebar-ext .mini-menu-dots .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
}

.mini-sidebar-ext.white-bg .dot {
    background: rgba(0, 0, 0, 0.1);
}

.mini-sidebar-ext .mini-menu-dots .dot.active {
    background: #ffffff;
}

.mini-sidebar-ext .mini-menu-dots .dot.active.orange {
    background: #ff7a00;
}

/* Mini Workspace Styles */
.mini-workspace-ext {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.mini-workspace-ext.warm-bg {
    background: linear-gradient(135deg, #fffcf8 0%, #fff7eb 100%);
}

/* Project tags overrides */
.tag-red-solid {
    background: #ef4444 !important;
    color: #ffffff !important;
}

.tag-orange-solid {
    background: #ff7a00 !important;
    color: #ffffff !important;
}

.tag-dark-outline {
    background: transparent !important;
    border: 1px solid #2b303a !important;
    color: #2b303a !important;
}

/* Mini previews */
.project-preview-mockup-ext {
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.crm-card-ext .project-preview-mockup-ext {
    background: #ffffff;
    border-color: #f2e9de;
}

.mockup-kpi-bar-ext {
    display: flex;
    gap: 1.5rem;
}

.mock-kpi-ext {
    display: flex;
    flex-direction: column;
}

.m-val-ext {
    font-size: 1.25rem;
    font-weight: 700;
    color: #262421;
}

.m-lbl-ext {
    font-size: 0.75rem;
    color: #8c857b;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.mockup-chart-bars-ext {
    display: flex;
    align-items: flex-end;
    gap: 0.5rem;
    height: 50px;
}

.m-bar-ext {
    display: inline-block;
    width: 25px;
    background: #e4e7ed;
    border-radius: 4px 4px 0 0;
}

.m-bar-ext.red {
    background: #ef4444;
}

.mockup-chart-funnel-ext {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.m-funnel-layer-ext {
    height: 10px;
    background: #ff7a00;
    border-radius: 3px;
    opacity: 0.9;
}

.m-funnel-layer-ext:nth-child(2) {
    opacity: 0.6;
}

.m-funnel-layer-ext:nth-child(3) {
    opacity: 0.3;
}

.project-action-btn-ext {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 0.85rem;
    color: #ef4444;
    transition: transform 0.2s ease;
}

.crm-card-ext .project-action-btn-ext {
    color: #ff7a00;
}

.portfolio-project-card:hover .project-action-btn-ext {
    transform: translateX(3px);
}

/* Return Buttons integrated into Sidebars */
.app-back-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff !important;
    padding: 0.6rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin: 0.5rem 1rem 1.5rem 1rem;
    width: calc(100% - 2rem);
}

.app-back-btn:hover {
    background: #ffffff;
    color: #ef4444 !important;
    border-color: #ffffff;
}

.crm-back-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: #fff7eb;
    border: 1px solid #eddcd0;
    color: #ff7a00 !important;
    padding: 0.6rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin: 0.5rem 1rem 1.5rem 1rem;
    width: calc(100% - 2rem);
}

.crm-back-btn:hover {
    background: #ff7a00;
    color: #ffffff !important;
    border-color: #ff7a00;
}

/* Hide default close button */
.logistics-app-modal .modal-db-close-btn,
.crm-app-modal .modal-db-close-btn {
    position: static;
}

/* CRM tabs display toggles */
.crm-tab-content {
    display: none;
}

.crm-tab-content.active {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    animation: crmFadeIn 0.3s ease-out;
}

@keyframes crmFadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Sales historical table */
.crm-table-container {
    width: 100%;
    overflow-x: auto;
    margin-top: 1rem;
}

.crm-data-table-sales {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.crm-data-table-sales th {
    background: #fcf8f3;
    padding: 1rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 700;
    color: #8c857b;
    border-bottom: 2px solid #eddcd0;
}

.crm-data-table-sales td {
    padding: 1.2rem 1rem;
    font-size: 0.85rem;
    color: #262421;
    border-bottom: 1px solid #f2e9de;
}

.crm-data-table-sales tbody tr:hover {
    background: rgba(255, 122, 0, 0.02);
}

/* Workspace filters layout and spacing optimization */
.workspace-filters {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.25rem;
    margin-left: auto;
}

.filter-dates {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.kpi-highlight-card {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid #e4e7ed;
    border-radius: 8px;
    padding: 0.4rem 1rem;
    min-width: 150px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
    align-items: center;
}

.kpi-highlight-label {
    font-size: 0.68rem;
    text-transform: uppercase;
    color: #8c93a0;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.kpi-highlight-value {
    font-size: 1.15rem;
    font-weight: 800;
    color: #ef4444;
}

.filter-carrier {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.filter-carrier label {
    font-size: 0.68rem;
    text-transform: uppercase;
    font-weight: 700;
    color: #8c93a0;
}

.carrier-select {
    background: #ffffff;
    border: 1px solid #e4e7ed;
    border-radius: 6px;
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
    color: #2b303a;
    font-weight: 600;
    outline: none;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.carrier-select:focus {
    border-color: #ef4444;
}

@media (max-width: 992px) {
    .app-back-btn, .crm-back-btn {
        width: auto !important;
        margin: 0 1rem 0 0 !important;
        padding: 0.5rem 0.75rem !important;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr !important;
    }
    
    .portfolio-project-card.logistics-card-ext,
    .portfolio-project-card.crm-card-ext {
        grid-template-columns: 1fr !important;
    }
    
    .mini-sidebar-ext {
        display: none !important;
    }
}

