/* ==========================================================================
   EnvioCode Design System (2026 Redesign)
   Extracted from EnvioCode Brand Identity & Modern UI Guidelines
   ========================================================================== */

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

:root {
    /* Color Palette */
    --color-white: #FFFFFF;
    --color-bg-soft: #F5F7FC;
    --color-text-primary: #03133F;
    --color-text-secondary: #4A5570;
    --color-text-faint: #8A93AC;
    --color-accent-blue: #297EFF;
    --color-accent-blue-deep: #0E5CDB;
    --color-accent-orange: #EF6E00;
    --color-border: #E7EAF2;
    --color-status-green: #22A35E;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #297EFF 0%, #EF6E00 100%);
    --gradient-primary-hover: linear-gradient(135deg, #0E5CDB 0%, #D86300 100%);
    --gradient-blue-subtle: linear-gradient(135deg, rgba(41, 126, 255, 0.12) 0%, rgba(41, 126, 255, 0.02) 100%);
    --gradient-orange-subtle: linear-gradient(135deg, rgba(239, 110, 0, 0.12) 0%, rgba(239, 110, 0, 0.02) 100%);

    /* Typography */
    --font-heading: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(3, 19, 63, 0.04);
    --shadow-md: 0 8px 24px rgba(3, 19, 63, 0.06);
    --shadow-lg: 0 20px 40px rgba(3, 19, 63, 0.08);
    --shadow-btn: 0 8px 20px rgba(41, 126, 255, 0.22);

    /* Radii */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-pill: 50px;
}

/* Global Reset & Base Styles */
body {
    font-family: var(--font-body);
    color: var(--color-text-secondary);
    background-color: var(--color-white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6,
.h1,
.h2,
.h3,
.h4,
.h5,
.h6 {
    font-family: var(--font-heading);
    color: var(--color-text-primary);
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* Headlines must remain solid navy, no text gradient fills */
h1,
h2,
h3 {
    color: var(--color-text-primary) !important;
}

a {
    color: var(--color-accent-blue);
    text-decoration: none;
    transition: all 0.25s ease;
}

a:hover {
    color: var(--color-accent-blue-deep);
}

/* Section Background Treatment — Vivid Band (Clean Light Theme) */
.vivid-band-section {
    position: relative;
    background: #FFFFFF;
    overflow: hidden;
}

.vivid-band-section::before {
    content: '';
    position: absolute;
    top: -100px;
    left: -100px;
    width: 650px;
    height: 650px;
    background: radial-gradient(circle, rgba(41, 126, 255, 0.16) 0%, rgba(41, 126, 255, 0) 70%);
    filter: blur(60px);
    pointer-events: none;
    z-index: 0;
    animation: ambientPulseBlue 8s ease-in-out infinite alternate;
}

.vivid-band-section::after {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(239, 110, 0, 0.13) 0%, rgba(239, 110, 0, 0) 70%);
    filter: blur(70px);
    pointer-events: none;
    z-index: 0;
    animation: ambientPulseOrange 10s ease-in-out infinite alternate;
}

@keyframes ambientPulseBlue {
    0% {
        transform: scale(1) translate(0, 0);
        opacity: 0.8;
    }

    100% {
        transform: scale(1.15) translate(30px, -20px);
        opacity: 1;
    }
}

@keyframes ambientPulseOrange {
    0% {
        transform: scale(1) translate(0, 0);
        opacity: 0.8;
    }

    100% {
        transform: scale(1.18) translate(-30px, 20px);
        opacity: 1;
    }
}

.vivid-band-content {
    position: relative;
    z-index: 1;
}

/* GPU-Accelerated CSS 3D Viewport & Glass Card System */
.css3d-viewport {
    perspective: 1200px;
    perspective-origin: 50% 50%;
    position: relative;
    padding: 24px 12px;
    transform-style: preserve-3d;
}

.css3d-glass-card {
    transform-style: preserve-3d;
    transform: rotateY(-14deg) rotateX(8deg) rotateZ(-1.5deg);
    transition: transform 0.15s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.4s ease;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.96) 0%, rgba(245, 247, 252, 0.88) 100%);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    border: 1.5px solid rgba(255, 255, 255, 0.95);
    border-radius: 24px;
    padding: 28px;
    box-shadow: -20px 30px 65px -10px rgba(3, 19, 63, 0.16), 0 10px 20px -5px rgba(41, 126, 255, 0.08), inset 0 1px 1px rgba(255, 255, 255, 0.9);
    position: relative;
    overflow: hidden;
    will-change: transform;
}

/* Glass Sheen Sweep Reflection */
.css3d-glass-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(115deg, transparent 40%, rgba(255, 255, 255, 0.45) 48%, rgba(255, 255, 255, 0.75) 50%, rgba(255, 255, 255, 0.45) 52%, transparent 60%);
    pointer-events: none;
    transform: rotate(25deg);
    animation: glassSheenSweep 9s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    z-index: 10;
}

@keyframes glassSheenSweep {
    0% {
        transform: translateX(-150%) rotate(25deg);
    }

    20% {
        transform: translateX(150%) rotate(25deg);
    }

    100% {
        transform: translateX(150%) rotate(25deg);
    }
}

.css3d-glass-card.is-floating {
    animation: floatHeroCard3D 6s ease-in-out infinite alternate;
}

@keyframes floatHeroCard3D {
    0% {
        transform: rotateY(-14deg) rotateX(8deg) rotateZ(-1.5deg) translateY(0px) translateZ(0px);
        box-shadow: -20px 30px 65px -10px rgba(3, 19, 63, 0.16);
    }

    100% {
        transform: rotateY(-11deg) rotateX(6deg) rotateZ(-0.5deg) translateY(-14px) translateZ(12px);
        box-shadow: -25px 42px 75px -10px rgba(3, 19, 63, 0.22);
    }
}

/* Spatial Z-Axis Depth Layering Classes */
.layer-depth-base {
    transform: translateZ(0px);
}

.layer-depth-1 {
    transform: translateZ(18px);
    transform-style: preserve-3d;
    transition: transform 0.3s ease;
}

.layer-depth-2 {
    transform: translateZ(35px);
    transform-style: preserve-3d;
    transition: transform 0.3s ease;
}

.layer-depth-3 {
    transform: translateZ(50px);
    transform-style: preserve-3d;
    transition: transform 0.3s ease;
}

/* 3D Floating Mini-Badges with spatial z-axis offset */
.badge-3d-float {
    position: absolute;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(231, 234, 242, 0.95);
    padding: 9px 20px;
    border-radius: var(--radius-pill);
    box-shadow: -10px 15px 30px rgba(3, 19, 63, 0.15), 0 4px 10px rgba(41, 126, 255, 0.1);
    font-size: 13px;
    font-weight: 700;
    color: var(--color-text-primary);
    display: inline-flex;
    align-items: center;
    gap: 9px;
    z-index: 25;
    pointer-events: none;
    transform: translateZ(65px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.badge-3d-top-right {
    top: -16px;
    right: -16px;
    animation: floatBadge3D1 5s ease-in-out infinite alternate;
}

.badge-3d-bottom-left {
    bottom: -16px;
    left: -16px;
    animation: floatBadge3D2 6s ease-in-out infinite alternate;
}

@keyframes floatBadge3D1 {
    0% {
        transform: translateZ(65px) translateY(0px) rotate(0deg);
    }

    100% {
        transform: translateZ(80px) translateY(-12px) rotate(1.5deg);
    }
}

@keyframes floatBadge3D2 {
    0% {
        transform: translateZ(65px) translateY(0px) rotate(0deg);
    }

    100% {
        transform: translateZ(80px) translateY(12px) rotate(-1.5deg);
    }
}

/* Navbar Custom Styling */
.header-navbar {
    background: transparent;
    padding: 20px 0;
    transition: all 0.3s ease;
    z-index: 1000;
}

.header-navbar .nav-link {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 15px;
    color: var(--color-text-primary);
    padding: 8px 18px !important;
    transition: color 0.2s ease;
}

.header-navbar .nav-link:hover {
    color: var(--color-accent-blue);
}

/* Logo Sizing Rules */
.nav-logo-img {
    height: 44px !important;
    width: auto;
    object-fit: contain;
}

.footer-logo-img {
    height: 34px !important;
    width: auto;
    object-fit: contain;
}

/* Buttons */
.btn-primary-gradient {
    background: var(--gradient-primary);
    color: var(--color-white) !important;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 15px;
    padding: 12px 28px;
    border-radius: var(--radius-pill);
    border: none;
    box-shadow: var(--shadow-btn);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    cursor: pointer;
}

.btn-primary-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(41, 126, 255, 0.35);
    color: var(--color-white) !important;
}

.btn-secondary-outline {
    background: var(--color-white);
    color: var(--color-text-primary) !important;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 15px;
    padding: 12px 28px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-secondary-outline:hover {
    background: var(--color-bg-soft);
    border-color: var(--color-accent-blue);
    color: var(--color-accent-blue) !important;
    transform: translateY(-2px);
}

/* Status Badge Pill */
.status-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    padding: 6px 16px;
    border-radius: var(--radius-pill);
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text-secondary);
    box-shadow: var(--shadow-sm);
    margin-bottom: 24px;
}

.status-dot-green {
    width: 8px;
    height: 8px;
    background-color: var(--color-status-green);
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 0 3px rgba(34, 163, 94, 0.2);
    animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
    0% {
        box-shadow: 0 0 0 0 rgba(34, 163, 94, 0.4);
    }

    70% {
        box-shadow: 0 0 0 6px rgba(34, 163, 94, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(34, 163, 94, 0);
    }
}

/* Section Headings & Eyebrows */
.eyebrow-label {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-accent-blue);
    background: rgba(41, 126, 255, 0.08);
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    margin-bottom: 12px;
}

.eyebrow-label-orange {
    color: var(--color-accent-orange);
    background: rgba(239, 110, 0, 0.08);
}

.section-title {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--color-text-primary);
}

.section-desc {
    font-size: 17px;
    color: var(--color-text-secondary);
    max-width: 640px;
    margin: 0 auto;
}

/* Cards Design System — Interactive 3D Cards */
.envio-card {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 30px;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    perspective: 1000px;
    overflow: hidden;
    will-change: transform;
    transition: transform 0.18s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.4s ease, border-color 0.3s ease;
}

/* Glass Sheen Sweep Effect on Hover */
.envio-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(115deg, transparent 40%, rgba(41, 126, 255, 0.08) 48%, rgba(255, 255, 255, 0.7) 50%, rgba(239, 110, 0, 0.08) 52%, transparent 60%);
    pointer-events: none;
    transform: translateX(-150%) rotate(25deg);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 5;
}

.envio-card:hover::before {
    opacity: 1;
    animation: cardSheenSweep 1.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes cardSheenSweep {
    0% {
        transform: translateX(-150%) rotate(25deg);
    }

    100% {
        transform: translateX(150%) rotate(25deg);
    }
}

.envio-card:hover {
    box-shadow: -10px 20px 45px -10px rgba(3, 19, 63, 0.12), 0 10px 25px -5px rgba(41, 126, 255, 0.15);
    border-color: rgba(41, 126, 255, 0.4);
}

/* Spatial Z-Axis Depth for Inner Card Components */
.envio-card .icon-box-44 {
    transform: translateZ(26px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    transform-style: preserve-3d;
}

.envio-card:hover .icon-box-44 {
    transform: translateZ(36px) scale(1.08);
    box-shadow: 0 8px 20px rgba(41, 126, 255, 0.25);
}

.envio-card h4,
.envio-card h5 {
    transform: translateZ(20px);
    transition: transform 0.3s ease;
}

.envio-card p,
.envio-card ul {
    transform: translateZ(12px);
    transition: transform 0.3s ease;
}

.envio-card .badge,
.envio-card a {
    transform: translateZ(22px);
    display: inline-block;
    transition: transform 0.3s ease, color 0.3s ease;
}

/* 44px Icon Containers */
.icon-box-44 {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: 20px;
    flex-shrink: 0;
}

.icon-box-blue {
    background: rgba(41, 126, 255, 0.1);
    color: var(--color-accent-blue);
}

.icon-box-orange {
    background: rgba(239, 110, 0, 0.1);
    color: var(--color-accent-orange);
}

/* Glass Dashboard Mockup Panel (Hero Right Column) */
.glass-dashboard-card {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--color-white);
    border-radius: var(--radius-xl);
    padding: 24px;
    box-shadow: 0 25px 50px -12px rgba(3, 19, 63, 0.15);
    transform: rotate(-1.5deg);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.glass-dashboard-card:hover {
    transform: rotate(0deg) scale(1.01);
    box-shadow: 0 30px 60px -10px rgba(3, 19, 63, 0.2);
}

.dashboard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 20px;
}

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

.dashboard-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #E7EAF2;
}

.dashboard-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--color-text-faint);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Dashboard KPI Grid inside glass panel */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.kpi-card {
    background: var(--color-bg-soft);
    border-radius: var(--radius-md);
    padding: 12px;
    text-align: center;
    border: 1px solid rgba(231, 234, 242, 0.8);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.kpi-card:hover {
    transform: translateZ(28px) scale(1.04);
    box-shadow: 0 8px 20px rgba(3, 19, 63, 0.08);
}

.kpi-val {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 800;
    color: var(--color-text-primary);
}

.kpi-val-green {
    color: var(--color-status-green);
}

.kpi-lbl {
    font-size: 11px;
    color: var(--color-text-faint);
    font-weight: 600;
}

/* Dashboard Chart Section */
.dashboard-chart-box {
    background: var(--color-bg-soft);
    border-radius: var(--radius-md);
    padding: 16px;
    border: 1px solid rgba(231, 234, 242, 0.8);
}

.chart-bars {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    height: 80px;
    margin-top: 12px;
}

.chart-bar {
    flex: 1;
    background: var(--color-accent-blue);
    border-radius: 4px 4px 0 0;
    transition: height 0.8s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.3s ease, transform 0.3s ease;
    position: relative;
    cursor: pointer;
}

.chart-bar:hover {
    transform: translateY(-4px) scaleY(1.05);
    box-shadow: 0 4px 12px rgba(41, 126, 255, 0.3);
}

.chart-bar.highlight {
    background: var(--gradient-primary);
    box-shadow: 0 4px 14px rgba(239, 110, 0, 0.35);
    animation: barPulse 3s ease-in-out infinite alternate;
}

@keyframes barPulse {
    0% {
        filter: brightness(1);
    }

    100% {
        filter: brightness(1.2) drop-shadow(0 0 8px rgba(239, 110, 0, 0.5));
    }
}

/* Stats Row below Hero */
.hero-stats-row {
    border-top: 1px solid var(--color-border);
    padding-top: 24px;
    margin-top: 36px;
    display: flex;
    gap: 36px;
}

.stat-item-num {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 800;
    color: var(--color-text-primary);
    line-height: 1.1;
}

.stat-item-lbl {
    font-size: 13px;
    color: var(--color-text-faint);
    font-weight: 500;
}

/* Footer Styling */
.site-footer {
    background: var(--color-white);
    border-top: 1px solid var(--color-border);
    padding: 70px 0 30px 0;
}

.footer-widget-title {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--color-text-secondary);
    font-size: 14px;
}

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

.footer-bottom {
    border-top: 1px solid var(--color-border);
    margin-top: 50px;
    padding-top: 24px;
    font-size: 13px;
    color: var(--color-text-faint);
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .glass-dashboard-card {
        transform: rotate(0deg);
        margin-top: 40px;
    }

    .hero-stats-row {
        gap: 20px;
        flex-wrap: wrap;
    }
}