:root {
    --bg-dark: #050608;
    --bg-card: rgba(255, 255, 255, 0.03);
    --border-glass: rgba(255, 255, 255, 0.1);
    --primary: #4f91ff;
    --primary-glow: rgba(79, 145, 255, 0.4);
    --accent: #8b5cf6;
    --success: #10b981;
    --text-main: #e8eaed;
    --text-muted: #9aa0a6;
    --font-outfit: 'Outfit', sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    margin: 0;
}

h1,
h2,
h3,
h4,
h5,
.navbar-brand {
    font-family: var(--font-outfit);
}

/* 3D Canvas Background */
#canvas-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

/* Glass Navigation */
.glass-nav {
    background: rgba(5, 6, 8, 0.7);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border-glass);
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: white !important;
    letter-spacing: -1px;
}

.brand-accent {
    color: var(--primary);
}

.nav-link {
    color: var(--text-muted) !important;
    font-weight: 500;
    margin: 0 1rem;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: white !important;
}

/* Hero Section */
.hero-section {
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: none;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #e0e0e0;
    margin-bottom: 2.5rem;
    line-height: 1.6;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.5);
}

.btn-main {
    background: var(--primary);
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 0 20px var(--primary-glow);
    border: none;
    transition: all 0.3s ease;
}

.btn-main:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 30px var(--primary-glow);
    background: #3d7ce6;
}

.hero-visual-box {
    filter: drop-shadow(0 0 50px rgba(79, 145, 255, 0.2));
}

.floating-3d {
    animation: float 6s ease-in-out infinite;
    max-width: 120%;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(0);
    }

    50% {
        transform: translateY(-20px) rotate(2deg);
    }
}

/* Glass Card */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    transition: all 0.3s ease;
    height: 100%;
}

.glass-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--primary);
    transform: translateY(-5px);
}

.icon-box {
    width: 60px;
    height: 60px;
    background: rgba(79, 145, 255, 0.1);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.5rem;
}

/* Agent Mesh Diagram */
.agent-mesh-wrapper {
    position: relative;
    width: 1000px;
    height: 600px;
    margin: 100px auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.mesh-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: visible;
}

.mesh-line {
    fill: none;
    stroke: var(--primary);
    stroke-width: 2;
    stroke-dasharray: 8, 8;
    opacity: 0.3;
    animation: dashOffset 30s linear infinite;
}

@keyframes dashOffset {
    from {
        stroke-dashoffset: 500;
    }

    to {
        stroke-dashoffset: 0;
    }
}

.mesh-core {
    width: 140px;
    height: 140px;
    background: rgba(79, 145, 255, 0.15);
    border: 2px solid var(--primary);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 3;
    box-shadow: 0 0 40px var(--primary-glow);
    text-align: center;
}

.mesh-core i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 5px;
}

.mesh-agent-node {
    position: absolute;
    width: 280px;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass);
    padding: 1.5rem;
    border-radius: 20px;
    z-index: 10;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    /* Initial state for GSAP */
    opacity: 1;
}

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

.mesh-agent-node:hover {
    border-color: var(--primary);
    transform: translateY(-10px) !important;
    background: rgba(79, 145, 255, 0.12);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

/* Precise Positions for 1000x600 wrapper */
.node-1 {
    top: -20px;
    left: 50%;
    margin-left: -140px;
}

.node-2 {
    top: 180px;
    right: -80px;
}

.node-3 {
    bottom: 20px;
    right: 50px;
}

.node-4 {
    bottom: 20px;
    left: 50px;
}

.node-5 {
    top: 180px;
    left: -80px;
}

/* GSAP Compatibility */
.agent-mesh-wrapper .mesh-agent-node {
    pointer-events: all;
}

@media (max-width: 991px) {
    .agent-mesh-wrapper {
        width: 100%;
        height: auto;
        flex-direction: column;
        padding: 50px 0;
        gap: 30px;
        margin: 0;
    }

    .mesh-svg {
        display: none;
    }

    .mesh-agent-node {
        position: relative !important;
        width: 90% !important;
        left: auto !important;
        right: auto !important;
        top: auto !important;
        bottom: auto !important;
        margin: 0 auto !important;
        transform: none !important;
    }

    .mesh-core {
        position: relative;
        margin-bottom: 40px;
    }
}

/* Workflow Steps */
.workflow-steps {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.step-item {
    text-align: center;
    z-index: 2;
    flex: 1;
}

.step-circle {
    width: 50px;
    height: 50px;
    background: var(--bg-dark);
    border: 2px solid var(--primary);
    border-radius: 50%;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--primary);
    box-shadow: 0 0 15px rgba(79, 145, 255, 0.3);
}

.step-line {
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    margin-top: -45px;
    opacity: 0.3;
}

/* Governance Section */
.compliance-badge-box {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
}

.badge-item {
    padding: 1rem 2rem;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid var(--success);
    color: var(--success);
    border-radius: 50px;
    font-weight: 700;
}

.glow-bg {
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.15) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

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

/* Custom Text Primary Button */
.btn-primary-glow {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary-glow:hover {
    background: var(--primary);
    color: white;
    box-shadow: 0 0 15px var(--primary-glow);
}

.cursor-pointer {
    cursor: pointer;
}

/* Responsive */
@media (max-width: 991px) {
    .hero-title {
        font-size: 2.5rem;
    }

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

    .step-line {
        display: none;
    }
}

/* Custom Modals - Targeted Fix */
body .modal .modal-content {
    background-color: #0a0c10 !important;
    background: #0a0c10 !important;
    backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: #ffffff !important;
    border-radius: 20px !important;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.8) !important;
}


body .modal .modal-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    padding: 1.5rem 2rem !important;
}

body .modal .modal-header .modal-title {
    font-family: var(--font-outfit) !important;
    font-weight: 700 !important;
    font-size: 1.5rem !important;
    color: #ffffff !important;
}

body .modal .modal-body {
    padding: 2rem !important;
    max-height: 70vh !important;
    overflow-y: auto !important;
}

body .modal .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%) !important;
}


body .modal .modal-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
    padding: 1rem 2rem !important;
}

body .modal .modal-section-title {
    color: var(--primary) !important;
    font-weight: 600 !important;
    margin-top: 1.5rem !important;
    margin-bottom: 0.75rem !important;
    font-family: var(--font-outfit) !important;
}

body .modal .modal-text {
    color: #ccced0 !important;
    line-height: 1.6 !important;
    font-size: 0.95rem !important;
}

.contact-info-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.contact-info-item i {
    font-size: 1.25rem;
    color: var(--primary);
    margin-right: 1rem;
}


/* Scrollbar for modal body */
.modal-body::-webkit-scrollbar {
    width: 6px;
}

.modal-body::-webkit-scrollbar-track {
    background: transparent;
}

.modal-body::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Signup Modal Styles */
.role-card,
.tier-card {
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.role-card:hover,
.tier-card:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary) !important;
    transform: translateY(-5px);
}

.role-card.selected,
.tier-card.selected {
    background: rgba(79, 145, 255, 0.1);
    border-color: var(--primary) !important;
    box-shadow: 0 0 15px rgba(79, 145, 255, 0.3);
}

.cursor-pointer {
    cursor: pointer;
}

.tier-label {
    font-weight: 700;
    font-size: 1.1rem;
    font-family: var(--font-outfit);
}

.tier-price {
    font-size: 1.25rem;
    font-weight: 600;
}

.tier-features {
    padding-left: 0;
}

.tier-features li {
    margin-bottom: 0.5rem;
}

#signupProgress {
    transition: width 0.4s ease;
}

/* Utility Classes */
.text-accent {
    color: var(--accent) !important;
}

.text-primary-glow {
    color: var(--primary) !important;
    text-shadow: 0 0 10px var(--primary-glow);
}

.bg-accent {
    background-color: var(--accent) !important;
    color: white !important;
}

.feature-list li {
    font-size: 0.95rem;
    padding-left: 0.5rem;
}

.fs-4 {
    font-size: 1.5rem !important;
}