/* --- Variables & Reset --- */
:root {
    --bg-dark: #020617;
    --primary: #6366f1;
    --primary-glow: rgba(99, 102, 241, 0.4);
    --accent: #06b6d4;
    --text-main: #e2e8f0;
    --text-muted: #94a3b8;
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-bg: rgba(2, 6, 23, 0.7);
    --font-heading: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-heading);
    width: 100vw;
    overflow-x: hidden;
}

body.loading {
    overflow: hidden;
}

html {
    scroll-behavior: smooth;
}

/* --- Hero Badge --- */
.hero-badge {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    color: var(--primary);
    border: 1px solid rgba(99, 102, 241, 0.3);
    background: rgba(99, 102, 241, 0.06);
    padding: 0.35rem 0.9rem;
    border-radius: 99px;
    margin-bottom: 1.5rem;
}

/* --- Mobile Menu Toggle --- */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 101;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-main);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.menu-toggle.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle.open span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .glass-nav .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background: rgba(2, 6, 23, 0.97);
        backdrop-filter: blur(20px);
        border-top: 1px solid var(--glass-border);
        padding: 1.5rem 2rem;
        gap: 1.2rem;
    }

    .glass-nav .nav-links.open {
        display: flex;
    }
}

/* --- Loader --- */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #000;
}

.loader-content {
    z-index: 2;
    position: relative;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

/* HTML wordmark */
.loader-wordmark {
    display: flex;
    align-items: baseline;
    overflow: hidden;
}

.loader-word {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 10vw, 7rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    color: #fff;
    display: inline-block;
    clip-path: inset(0 100% 0 0);
    animation: wipeIn 0.9s var(--ease-out-expo) 0.1s forwards;
}

.loader-word.accent {
    color: var(--primary);
    animation-delay: 0.28s;
}

@keyframes wipeIn {
    to {
        clip-path: inset(0 0% 0 0);
    }
}

/* Tagline */
.loader-tagline {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.25em;
    color: rgba(255, 255, 255, 0.35);
    opacity: 0;
    animation: fadeInTagline 0.8s ease 1.2s forwards;
}

@keyframes fadeInTagline {
    to {
        opacity: 1;
    }
}

/* Progress bar */
.loader-bar {
    width: clamp(200px, 40vw, 360px);
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 99px;
    overflow: hidden;
}

.loader-bar-fill {
    height: 100%;
    width: 0%;
    background: var(--primary);
    border-radius: 99px;
    animation: fillBar 1.8s var(--ease-out-expo) 0.1s forwards;
}

@keyframes fillBar {
    to {
        width: 100%;
    }
}

/* Curtains */
.curtain {
    position: absolute;
    top: 0;
    width: 50%;
    height: 100%;
    background: #000;
    transition: transform 1.5s var(--ease-out-expo);
    z-index: 1;
}

.curtain.left {
    left: 0;
    transform-origin: left;
}

.curtain.right {
    right: 0;
    transform-origin: right;
}

.loader.loaded .curtain.left {
    transform: scaleX(0);
}

.loader.loaded .curtain.right {
    transform: scaleX(0);
}

.loader.loaded .loader-content {
    opacity: 0;
    transition: opacity 0.4s;
}

.loader.loaded {
    pointer-events: none;
    background: transparent;
    transition: background 0.5s step-end, visibility 0s 1.5s;
    visibility: hidden;
}


/* --- Smooth Scroll Container --- */
#scroll-container {
    width: 100%;
    position: relative;
}

/* --- Typography Utilities --- */
h1,
h2,
h3,
h4 {
    letter-spacing: -0.04em;
    line-height: 0.95;
}

.huge-text {
    font-size: clamp(3rem, 8vw, 10rem);
}

a {
    text-decoration: none;
    color: inherit;
}

/* --- Navigation --- */
.glass-nav {
    position: fixed;
    top: 2rem;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    z-index: 100;
    transition: transform 1.2s var(--ease-out-expo), opacity 1.2s ease;
    transition-delay: 0.8s;
}

body.loading .glass-nav {
    transform: translate3d(-50%, -150px, 0);
    opacity: 0;
}

.logo {
    font-weight: 800;
    font-size: 1.2rem;
    letter-spacing: -0.02em;
}

.logo span {
    color: var(--primary);
}

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

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s;
}

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

.btn-primary {
    background: var(--primary);
    color: white !important;
    padding: 0.75rem 1.5rem;
    border-radius: 99px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary:hover {
    box-shadow: 0 0 20px var(--primary-glow);
}

/* --- Data Visuals (Module Expansion) --- */

/* Yard Management */
.yard-viz {
    margin-top: 1.5rem;
    position: relative;
    height: 140px;
    /* Slightly taller */
    background: rgba(15, 23, 42, 0.3);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5);
}

.yard-map-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding: 15px;
    height: 100%;
}

.yard-spot {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    transition: background 0.3s;
}

.yard-spot.occupied {
    background: rgba(99, 102, 241, 0.4);
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.3);
    border-color: var(--primary);
}

.yard-truck-anim {
    position: absolute;
    top: 50%;
    left: -30px;
    width: 24px;
    height: 12px;
    background: var(--accent);
    box-shadow: 0 0 15px var(--accent);
    border-radius: 2px;
    animation: truckMove 5s infinite linear;
    z-index: 10;
}

@keyframes truckMove {
    0% {
        left: -20px;
        top: 20%;
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        left: 100%;
        top: 80%;
        opacity: 0;
    }
}

/* Smart Booking (Calendar) */
.calendar-viz {
    margin-top: 1rem;
    background: rgba(0, 0, 0, 0.3);
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.cal-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 8px;
}

.cal-day {
    height: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
    transition: background 0.3s, transform 0.2s;
}

.cal-day.active {
    background: var(--primary);
    box-shadow: 0 0 10px var(--primary);
    animation: pulse 2s infinite;
}

/* Command Center (KPIs) */
.kpi-dashboard {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.kpi-item {
    display: flex;
    flex-direction: column;
}

.kpi-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
    margin-bottom: 0.25rem;
}

.kpi-val {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}

/* Admin Viz */
.admin-viz {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-top: 1rem;
}

.shield-icon {
    width: 64px;
    height: 64px;
    color: var(--primary);
    filter: drop-shadow(0 0 15px rgba(99, 102, 241, 0.4));
}

.user-rows {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.user-row {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    background: rgba(255, 255, 255, 0.02);
    padding: 4px 8px;
    border-radius: 4px;
}

.role-badge {
    color: var(--accent);
    font-size: 0.7rem;
    border: 1px solid var(--accent);
    padding: 0 4px;
    border-radius: 3px;
}

/* --- Hero Section --- */
.hero {
    height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    text-align: center;
    overflow: hidden;
}

.hero-bg-mesh {
    position: absolute;
    inset: -50%;
    background:
        radial-gradient(circle at 50% 50%, rgba(99, 102, 241, 0.25) 0%, transparent 60%),
        radial-gradient(circle at 80% 20%, rgba(6, 182, 212, 0.15) 0%, transparent 50%);
    z-index: -2;
    filter: blur(100px);
    animation: pulseMesh 10s infinite alternate;
}

@keyframes pulseMesh {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }

    100% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

@keyframes pulseRing {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }

    50% {
        opacity: 0.8;
    }

    100% {
        transform: scale(2);
        opacity: 0;
    }
}

/* --- Interactive Data Styles --- */
.data-list {
    list-style: none;
    margin-top: 2rem;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-muted);
}

.data-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.badge-success {
    color: #4ade80;
    background: rgba(74, 222, 128, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.7rem;
}

.stat-big {
    font-size: 2rem;
    font-weight: 700;
    color: white;
    margin-top: 0.5rem;
}

.status-tag {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--primary);
    border: 1px solid var(--primary);
    padding: 2px 6px;
    border-radius: 4px;
    margin-bottom: 0.5rem;
}

.micro-list {
    list-style: none;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    margin-top: 0.5rem;
}

.text-green {
    color: #4ade80;
}

.text-red {
    color: #ef4444;
}

.bottom-align {
    margin-top: auto;
}

.hero-spotlight {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: -1;
    transition: transform 0.1s linear;
}

/* Background Noise overlay */
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E");
    z-index: -1;
    opacity: 0.4;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
    width: 100%;
    padding: 0 1rem;
}

.hero-label {
    font-family: var(--font-mono);
    color: var(--primary);
    font-size: 0.9rem;
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s 0.5s forwards var(--ease-out-expo);
}

.hero-title {
    font-size: clamp(3rem, 9vw, 11rem);
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 0.9;
    color: white;
}

.reveal-text {
    display: inline-block;
    opacity: 0;
    transform: translateY(50px) rotateX(20deg);
    animation: heroReveal 1s forwards var(--ease-out-expo);
    background: linear-gradient(to bottom, #fff 40%, #94a3b8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.reveal-text:nth-child(3) {
    animation-delay: 0.8s;
}

.reveal-text:first-child {
    animation-delay: 0.6s;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 600px;
    opacity: 0;
    margin-top: 1rem;
    margin-inline: auto;
    animation: fadeUp 0.8s 1.0s forwards var(--ease-out-expo);
}

.cta-btn {
    margin-top: 3rem;
    background: transparent;
    border: 1px solid var(--glass-border);
    padding: 1rem 2rem;
    color: var(--text-main);
    border-radius: 99px;
    cursor: pointer;
    font-family: var(--font-heading);
    font-weight: 600;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: 0.3s;
    opacity: 0;
    animation: fadeUp 0.8s 1.2s forwards var(--ease-out-expo);
}

.cta-btn:hover {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.1);
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 3rem;
    right: 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
    opacity: 0;
    animation: fadePulse 2s 3s infinite;
}

.hero-scroll-indicator .line {
    width: 1px;
    height: 60px;
    background: var(--glass-border);
    position: relative;
    overflow: hidden;
}

.hero-scroll-indicator .line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 30%;
    background: var(--primary);
    animation: dropLine 2s infinite;
}

/* --- Horizontal Scroll Section --- */
.horizontal-scroll {
    height: 300vh;
    position: relative;
}

.sticky-wrapper {
    position: sticky;
    top: 0;
    height: 100vh;
    width: 100%;
    overflow: hidden;
}

.scroll-track {
    display: flex;
    width: 200vw;
    height: 100vh;
    will-change: transform;
}

.scroll-panel {
    width: 100vw;
    height: 100vh;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
}

.panel-chaos {
    background: linear-gradient(135deg, #2b0808 0%, #020617 60%);
}

.panel-control {
    background: linear-gradient(135deg, #020617 40%, #0d1b3e 100%);
}

.panel-content {
    max-width: 800px;
    z-index: 2;
}

.panel-label {
    font-family: var(--font-mono);
    color: var(--accent);
    margin-bottom: 1rem;
}

.scroll-panel h2 {
    font-size: clamp(3rem, 6vw, 6rem);
    margin-bottom: 2rem;
}

/* Glitch effect */
.metric-glitch {
    font-size: 3rem;
    font-family: var(--font-mono);
    color: #ef4444;
    position: relative;
    display: inline-block;
}

.metric-glitch::before,
.metric-glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--bg-dark);
}

.metric-glitch::before {
    left: 2px;
    text-shadow: -1px 0 #00ffff;
    clip: rect(24px, 550px, 90px, 0);
    animation: glitch-anim-2 3s infinite linear alternate-reverse;
}

.metric-glitch::after {
    left: -2px;
    text-shadow: -1px 0 #ff00ff;
    clip: rect(85px, 550px, 140px, 0);
    animation: glitch-anim 2.5s infinite linear alternate-reverse;
}

/* Stats list */
.stats-list {
    list-style: none;
    font-family: var(--font-mono);
    border-top: 1px solid var(--glass-border);
}

.stats-list li {
    display: flex;
    justify-content: space-between;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--glass-border);
    font-size: 1.2rem;
}

.stats-list span:last-child {
    color: var(--primary);
    font-weight: 700;
}

/* --- Bento Features --- */
.features {
    padding: 10rem 0;
    position: relative;
}

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

.section-header {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 4rem;
}

.section-header h3 {
    font-size: 2rem;
    font-family: var(--font-mono);
    opacity: 0.7;
}

.separator {
    flex-grow: 1;
    height: 1px;
    background: var(--glass-border);
}

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

.bento-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(16px);
    /* Increased blur */
    transition: transform 0.4s var(--ease-out-expo), border-color 0.4s, box-shadow 0.4s;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    /* Subtle shadow base */
}

.bento-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px) scale(1.02);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
    box-shadow: 0 10px 40px rgba(99, 102, 241, 0.15);
    /* Primary glow on hover */
}

/* Subtle inner glow for cards */
.bento-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 24px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.card-large {
    grid-column: span 2;
}

.card-medium {
    grid-column: span 1;
}

.card-small {
    grid-column: span 1;
}

.card-content {
    z-index: 2;
}

.card-content h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.card-content p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* QR Animation */
.scanner-viz {
    position: absolute;
    right: 10px;
    bottom: 10px;
    width: 180px;
    height: 180px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236366f1' stroke-width='1.5' stroke-linecap='square' stroke-linejoin='miter'%3E%3Cpath d='M3 3h7v7H3z'/%3E%3Cpath d='M14 3h7v7h-7z'/%3E%3Cpath d='M14 14h7v7h-7z'/%3E%3Cpath d='M3 14h7v7H3z'/%3E%3Cpath d='M10 3h4v1H10z'/%3E%3Cpath d='M10 6h4v1H10z'/%3E%3Cpath d='M3 10h1v4H3z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    opacity: 0.8;
}

.scan-beam {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: #00ffff;
    box-shadow: 0 0 25px #00ffff;
    animation: scan 2.5s infinite ease-in-out;
}

/* Analytics Chart */
.chart-container {
    width: 100%;
    height: 120px;
    margin-top: auto;
    overflow: visible;
}

.line-chart {
    width: 100%;
    height: 100%;
    overflow: visible;
}

.line-chart path {
    stroke: #06b6d4;
    stroke-width: 4;
    fill: none;
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: drawPath 3s ease forwards;
    filter: drop-shadow(0 0 8px rgba(6, 182, 212, 0.6));
}

/* --- Workflow Section --- */
.workflow {
    padding: 8rem 0;
    position: relative;
    background: linear-gradient(to bottom, var(--bg-dark), #0f172a);
}

.workflow-steps {
    display: flex;
    gap: 2rem;
    margin-top: 3rem;
}

.step-card {
    flex: 1;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 2rem;
    position: relative;
    transition: transform 0.3s, background 0.3s;
    overflow: hidden;
}

.step-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--primary);
}

.step-number {
    font-size: 4rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.05);
    position: absolute;
    top: -10px;
    right: 10px;
    z-index: 1;
    font-family: var(--font-mono);
}

.step-content {
    position: relative;
    z-index: 2;
}

.step-content h4 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-main);
}

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

/* Helper to connect cards visually on hover (optional advanced effect) */
.step-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.step-card:hover::before {
    opacity: 1;
}

@media (max-width: 768px) {
    .workflow-steps {
        flex-direction: column;
    }
}

/* Lock Icon */
.icon-lock {
    width: 64px;
    height: 64px;
    color: #fff;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.4), rgba(99, 102, 241, 0.1));
    padding: 14px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
}

.icon-lock svg {
    width: 100%;
    height: 100%;
    stroke-width: 2.5;
}

/* Status Dot */
.status-dot-container {
    position: relative;
    width: 32px;
    height: 32px;
    margin-bottom: 1rem;
}

.status-dot {
    width: 16px;
    height: 16px;
    background: #4ade80;
    border-radius: 50%;
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 2;
    box-shadow: 0 0 10px #4ade80;
}

.status-ring {
    position: absolute;
    inset: 0;
    border: 2px solid #4ade80;
    border-radius: 50%;
    animation: pulseRing 2s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

/* --- Map & Testimonials --- */
.map-section {
    height: 80vh;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    background: radial-gradient(circle at center, #1e1b4b 0%, #020617 80%);
}

.dotted-map {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.map-svg {
    width: 100%;
    height: 100%;
}

.map-line {
    stroke: rgba(99, 102, 241, 0.2);
    stroke-width: 1;
}

.map-node {
    fill: var(--accent);
    filter: drop-shadow(0 0 5px var(--accent));
}

.map-packet {
    fill: #fff;
    filter: drop-shadow(0 0 5px #fff);
}

.map-overlay {
    position: absolute;
    text-align: center;
    background: rgba(2, 6, 23, 0.85);
    padding: 2.5rem;
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    z-index: 2;
    backdrop-filter: blur(12px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.map-overlay h3 {
    margin-bottom: 0.5rem;
    background: linear-gradient(to right, #fff, #94a3b8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.map-overlay p {
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.map-stats {
    display: flex;
    gap: 2rem;
    justify-content: center;
    border-top: 1px solid var(--glass-border);
    padding-top: 1.5rem;
}

.map-stat-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.map-stat-item .label {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
    letter-spacing: 0.05em;
}

.map-stat-item .value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
}

.testimonials {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    background: radial-gradient(circle at center, #0d0f1e 0%, #020617 70%);
}

.huge-quote {
    font-size: clamp(2rem, 5vw, 4rem);
    max-width: 1200px;
    line-height: 1.2;
    background: linear-gradient(to right, #fff, #94a3b8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.author {
    margin-top: 3rem;
    font-family: var(--font-mono);
    color: var(--primary);
}

/* --- Footer --- */
.footer {
    min-height: 60vh;
    background: #000;
    color: white;
    padding: 4rem 2rem;
    display: flex;
    align-items: flex-end;
}

.footer-content {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.footer-cta {
    font-size: clamp(4rem, 15vw, 20rem);
    line-height: 0.8;
    color: #333;
    transition: 0.3s;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

.footer-cta:hover {
    color: var(--primary);
}

.contact-info {
    margin-top: 1rem;
    font-family: var(--font-mono);
    color: var(--text-muted);
    font-size: 1.2rem;
}

.contact-info p {
    margin-bottom: 0.5rem;
}

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

.footer-links a {
    display: block;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: #555;
    border-top: 1px solid #222;
    padding-top: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.legal-col {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.legal-col.right {
    text-align: right;
}

.legal-text {
    font-size: 0.7rem;
    color: #444;
}

.legal-warning {
    color: var(--text-muted);
    font-weight: 700;
    letter-spacing: 0.05em;
}

.legal-sub {
    font-size: 0.7rem;
    color: #444;
}

@media (max-width: 768px) {
    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }

    .legal-col.right {
        text-align: left;
        margin-top: 1rem;
    }
}

/* --- Keyframes --- */
@keyframes heroReveal {
    to {
        opacity: 1;
        transform: translateY(0) rotateX(0);
    }
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes dropLine {
    0% {
        transform: translateY(-100%);
    }

    100% {
        transform: translateY(300%);
    }
}

@keyframes scan {
    0% {
        top: 0;
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    100% {
        top: 100%;
        opacity: 0;
    }
}

@keyframes drawPath {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes glitch-anim {
    0% {
        clip: rect(10px, 9999px, 80px, 0);
    }

    20% {
        clip: rect(80px, 9999px, 150px, 0);
        transform: translateX(5px);
    }

    100% {
        clip: rect(0, 9999px, 100px, 0);
        transform: translateX(0);
    }
}

@keyframes glitch-anim-2 {
    0% {
        clip: rect(50px, 9999px, 120px, 0);
        transform: translateX(-5px);
    }

    100% {
        clip: rect(120px, 9999px, 200px, 0);
        transform: translateX(0);
    }
}

/* Responsive */
@media (max-width: 768px) {

    /* --- 1. Adaptación del Bento Grid (Columnas) --- */
    .bento-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .card-large,
    .card-medium,
    .card-small {
        grid-column: span 1;
    }

    /* --- 2. FIX CRÍTICO: Scroll Horizontal a Vertical --- */

    /* Quitamos la altura gigante de 300vh */
    .horizontal-scroll {
        height: auto;
    }

    /* Desactivamos el "sticky" para que fluya natural */
    .sticky-wrapper {
        position: relative;
        height: auto;
        top: 0;
    }

    /* Forzamos la dirección vertical y bloqueamos al JS */
    .scroll-track {
        display: flex;
        flex-direction: column;
        width: 100%;
        height: auto;
        transform: none !important;
        /* Vital: Sobreescribe el movimiento lateral del JS */
    }

    /* Ajustamos los paneles para que ocupen pantalla vertical */
    .scroll-panel {
        width: 100%;
        height: auto;
        min-height: 80vh;
        /* Da espacio para respirar */
        padding: 6rem 1rem;
        /* Más espacio arriba/abajo */
    }

    /* --- 3. UI General Móvil --- */
    .nav-links {
        display: none;
    }

    /* --- 4. Ajuste del Dashboard 3D (Hero) --- */
    .hero-visual-wrapper {
        /* Reducimos escala y bajamos la posición */
        transform: translate(-50%, -50%) perspective(1000px) rotateX(20deg) scale(0.55);
        top: 65%;
        width: 100vw;
        display: flex;
        justify-content: center;
    }

    /* Aseguramos que la tarjeta de vidrio no sea más ancha que el celular */
    .hero-dashboard-glass {
        width: 90vw;
        height: auto;
        aspect-ratio: 16/10;
    }
}

/* --- Hero Visual Context (New Added) --- */
.hero-visual-wrapper {
    position: absolute;
    top: 55%;
    left: 50%;
    transform: translate(-50%, -50%) perspective(1000px) rotateX(20deg) scale(0.9);
    z-index: 1;
    opacity: 0;
    animation: heroReveal 1.2s 0.8s forwards var(--ease-out-expo);
    pointer-events: none;
}

.hero-dashboard-glass {
    width: 800px;
    height: 500px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, rgba(2, 6, 23, 0.4) 100%);
    border: 1px solid var(--glass-border);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 30px rgba(99, 102, 241, 0.1);
    backdrop-filter: blur(5px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

.dash-header {
    height: 40px;
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    padding: 0 1rem;
    gap: 1rem;
}

.dots span {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--glass-border);
    margin-right: 4px;
}

.dash-search {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-muted);
    background: rgba(0, 0, 0, 0.2);
    padding: 4px 8px;
    border-radius: 4px;
    width: 325px;
}

.dash-body {
    flex: 1;
    display: flex;
}

.dash-sidebar {
    width: 60px;
    border-right: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.01);
}

.dash-content-mock {
    flex: 1;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mock-graph {
    height: 120px;
    background: linear-gradient(90deg, rgba(99, 102, 241, 0.1) 0%, transparent 100%);
    border-radius: 8px;
    border: 1px dashed var(--glass-border);
}

.mock-rows span {
    display: block;
    height: 30px;
    background: rgba(255, 255, 255, 0.03);
    margin-bottom: 8px;
    border-radius: 4px;
    width: 100%;
}

.mock-rows span:nth-child(2) {
    width: 80%;
}

.mock-rows span:nth-child(3) {
    width: 60%;
}

.floating-card-kpi {
    position: absolute;
    bottom: 40px;
    right: -40px;
    background: var(--bg-dark);
    border: 1px solid var(--primary);
    padding: 1rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transform: translateZ(50px);
    display: flex;
    flex-direction: column;
}

.floating-card-kpi .label {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

.floating-card-kpi .value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #4ade80;
}

/* --- Carrier Benefits Section --- */
.carrier-benefits {
    padding: 6rem 0;
    position: relative;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0) 0%, rgba(15, 23, 42, 0.4) 100%);
}

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

.carrier-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 2.5rem;
    transition: transform 0.3s var(--ease-out-expo), box-shadow 0.3s, border-color 0.3s;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.carrier-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
    /* Using accent color for carriers */
    box-shadow: 0 10px 40px rgba(74, 222, 128, 0.15);
    /* Green glow for carrier section */
}

.carrier-card .card-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 1.5rem;
    color: var(--accent);
    background: rgba(74, 222, 128, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carrier-card .card-icon svg {
    width: 24px;
    height: 24px;
}

.carrier-card h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-heading);
}

.carrier-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
}

@media (max-width: 768px) {
    .carrier-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
        margin-top: 3rem;
    }

    .carrier-card {
        background: rgba(255, 255, 255, 0.03);
        border: 1px solid var(--glass-border);
        border-radius: 16px;
        padding: 2.5rem;
        transition: transform 0.3s var(--ease-out-expo), box-shadow 0.3s, border-color 0.3s;
        position: relative;
        overflow: hidden;
        backdrop-filter: blur(10px);
    }

    .carrier-card:hover {
        transform: translateY(-5px);
        border-color: var(--accent);
        /* Using accent color for carriers */
        box-shadow: 0 10px 40px rgba(74, 222, 128, 0.15);
        /* Green glow for carrier section */
    }

    .carrier-card .card-icon {
        width: 48px;
        height: 48px;
        margin-bottom: 1.5rem;
        color: var(--accent);
        background: rgba(74, 222, 128, 0.1);
        border-radius: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .carrier-card .card-icon svg {
        width: 24px;
        height: 24px;
    }

    .carrier-card h4 {
        font-size: 1.25rem;
        font-weight: 600;
        margin-bottom: 1rem;
        color: var(--text-heading);
    }

    .carrier-card p {
        font-size: 0.95rem;
        color: var(--text-muted);
        line-height: 1.6;
    }

    @media (max-width: 768px) {
        .carrier-grid {
            grid-template-columns: 1fr;
        }
    }
}