/* ============================================================================
   NEXBIT v2.0 — Production Theme CSS
   Intelligent Payments Platform Design System
   Built on AARAB v3.0 Architecture
   ============================================================================ */

/* --------------------------------------------------------------------------
   CSS Variables: Nexbit Brand Design Tokens
   -------------------------------------------------------------------------- */
:root { 
    /* Nexbit Brand Colors - Financial Technology Palette */
    --primary: #3b82f6;         /* Trust Blue - Primary Actions */
    --primary-hover: #2563eb;   /* Deeper Blue - Hover States */
    --primary-light: #60a5fa;   /* Light Blue - Highlights */
    --secondary: #7c3aed;       /* Innovation Violet - Secondary Actions */
    --accent: #06b6d4;          /* Fintech Cyan - Accents & CTAs */
    --success: #10b981;         /* Transaction Success Emerald */
    --warning: #f59e0b;         /* Alert Amber */
    --danger: #ef4444;          /* Error/Critical Red */
    --purple: #a855f7;          /* Feature Purple */

    /* Dark Mode Financial UI Backgrounds */
    --bg-dark: #0a0f1e;
    --bg-darker: #050912;
    --surface: #1e293b;         /* Slate-800 */
    --surface-light: #334155;   /* Slate-700 */
    --overlay: rgba(10, 15, 30, 0.95); /* Glass Overlay */

    /* Text Hierarchy for Financial Data */
    --text-primary: #f1f5f9;    /* Slate-100 */
    --text-secondary: #cbd5e1;  /* Slate-300 */
    --text-muted: #94a3b8;      /* Slate-400 */
    --text-dark: #0f172a;       /* Slate-900 */
    --text-muted-ai: var(--text-muted); /* AI Assistant Text */

    /* Borders & Separators */
    --border: rgba(51, 65, 85, 0.5);
    --border-light: rgba(148, 163, 184, 0.2);
    --border-radius: 0.75rem;

    /* Shadows & Depth */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-glow: 0 0 40px rgba(59, 130, 246, 0.3);

    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Typography */
    --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    --font-size-4xl: 2.25rem;
    --font-size-5xl: 3rem;
    --font-size-6xl: 3.75rem;

    /* Radius System */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;
}

/* --------------------------------------------------------------------------
   Global Reset & Base Styles
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
    scroll-padding-top: 5.5rem; 
}

body {
    min-height: 100vh;
    padding-top: 60px;
    background: linear-gradient(135deg, var(--bg-darker) 0%, var(--bg-dark) 50%, #0d1425 100%);
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: var(--font-size-base);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Nexbit subtle background pattern */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(59, 130, 246, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(139, 92, 246, 0.08) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    line-height: 1.2;
    font-weight: 700;
}

p {
    margin-bottom: 1.5rem;
}

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

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

/* --------------------------------------------------------------------------
   Utility Classes
   -------------------------------------------------------------------------- */
.skip-link {
    position: absolute;
    top: -9999px;
    left: 0;
    background: var(--primary);
    color: white;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    z-index: 9999;
    border-radius: var(--radius-md);
    font-weight: 600;
}

.skip-link:focus {
    top: 0;
}

.text-muted-ai {
    color: var(--text-muted) !important;
}

.text-purple {
    color: var(--secondary) !important;
}

.text-accent {
    color: var(--accent) !important;
}

/* --------------------------------------------------------------------------
   Navigation
   -------------------------------------------------------------------------- */
.navbar {
    padding-top: 0.35rem !important;
    padding-bottom: 0.35rem !important;
    background: var(--overlay);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
}

.navbar-brand {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    color: var(--text-primary);
    font-size: var(--font-size-xl);
    font-weight: 700;
    transition: all var(--transition-fast);
}

.navbar-brand:hover {
    color: var(--primary-light);
}

.navbar-brand img {
    height: 36px !important;
    width: auto !important;
    transition: transform var(--transition-fast);
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

.nav-link {
    color: var(--text-secondary);
    font-weight: 500;
    padding: 0.5rem 0;
    transition: color var(--transition-fast);
    position: relative;
}

.nav-link:hover {
    color: var(--text-primary);
}

.nav-link:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 4px;
}

/* Animated underline on nav links */
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 80%;
    height: 2px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
    transition: transform var(--transition-base);
}

.nav-link:hover::after {
    transform: translateX(-50%) scaleX(1);
}

/* --------------------------------------------------------------------------
   Buttons & CTAs
   -------------------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: var(--font-size-base);
    font-weight: 600;
    border-radius: var(--radius-lg);
    border: 2px solid transparent;
    transition: all var(--transition-fast);
    cursor: pointer;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover, 
.btn-primary:focus-visible {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    color: white;
}

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

.btn-outline-light:hover, 
.btn-outline-light:focus-visible {
    background: var(--surface);
    border-color: var(--primary);
    color: var(--primary-light);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: var(--font-size-lg);
}

/* --------------------------------------------------------------------------
   Hero Section
   -------------------------------------------------------------------------- */
.hero-section {
    padding: 8rem 0 6rem;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 0%, rgba(59, 130, 246, 0.12) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

.hero-gradient {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--secondary) 50%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.trust-badges .badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--surface-light);
    border: 1px solid var(--border);
    padding: 0.375rem 1rem;
    border-radius: var(--radius-full);
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
}

.logo-grid {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.logo-item {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--text-muted);
    opacity: 0.7;
    transition: opacity var(--transition-fast);
}

/* --------------------------------------------------------------------------
   Feature Cards
   -------------------------------------------------------------------------- */
.feature-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-2xl);
    padding: 2rem;
    box-shadow: var(--shadow-xl);
    transition: all var(--transition-base);
    position: relative;
    z-index: 1;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 15px 30px rgba(59, 130, 246, 0.1);
}

/* Gradient border effect on hover */
.feature-card::before {
    content: '';
    position: absolute;
    inset: -1px;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--secondary) 50%, var(--accent) 100%);
    border-radius: var(--radius-2xl);
    opacity: 0;
    transition: opacity var(--transition-base);
    z-index: -1;
}

.feature-card:hover::before {
    opacity: 0.3;
}

/* --------------------------------------------------------------------------
   Real-Time Status & Badges
   -------------------------------------------------------------------------- */
.ai-pulse {
    width: 12px;
    height: 12px;
    background: var(--success);
    border-radius: 50%;
    animation: pulse 2s infinite;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
}

@keyframes pulse {
    0%, 100% { 
        opacity: 1; 
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }
    50% { 
        opacity: 0.5; 
        transform: scale(1.1);
        box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
    }
}

.agent-badge {
    background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: 0.375rem 0.875rem;
    border-radius: var(--radius-full);
    font-size: var(--font-size-xs);
    font-weight: 600;
    letter-spacing: 0.05em;
}

/* --------------------------------------------------------------------------
   Result Cards & Research Input
   -------------------------------------------------------------------------- */
.research-input {
    background: var(--bg-darker);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
}

.result-card {
    background: var(--bg-dark);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.result-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

/* --------------------------------------------------------------------------
   General Section Styles
   -------------------------------------------------------------------------- */
section {
    padding: 6rem 0;
    position: relative;
    z-index: 1;
}

/* --------------------------------------------------------------------------
   Features Section
   -------------------------------------------------------------------------- */
#features {
    background: var(--bg-darker);
}

.feature-icon {
    width: 56px;
    height: 56px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.75rem;
    color: var(--primary);
}

/* Icon color mappings for Bootstrap Icons */
.bi-globe { color: var(--primary) !important; }
.bi-lightning-charge { color: var(--success) !important; }
.bi-wifi-off { color: var(--warning) !important; }
.bi-droplet { color: var(--accent) !important; }
.bi-credit-card { color: var(--purple) !important; }
.bi-shield-check { color: var(--danger) !important; }
.bi-globe-americas { color: var(--accent) !important; }
.bi-box-seam { color: var(--primary) !important; }
.bi-lock { color: var(--success) !important; }

/* Icon background colors */
.bg-primary.bg-opacity-10 { background-color: rgba(59, 130, 246, 0.1) !important; }
.bg-success.bg-opacity-10 { background-color: rgba(16, 185, 129, 0.1) !important; }
.bg-warning.bg-opacity-10 { background-color: rgba(245, 158, 11, 0.1) !important; }
.bg-info.bg-opacity-10 { background-color: rgba(6, 182, 212, 0.1) !important; }
.bg-purple.bg-opacity-10 { background-color: rgba(168, 85, 247, 0.1) !important; }
.bg-danger.bg-opacity-10 { background-color: rgba(239, 68, 68, 0.1) !important; }
.bg-accent.bg-opacity-10 { background-color: rgba(6, 182, 212, 0.1) !important; }

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

.feature-list li {
    font-size: var(--font-size-sm);
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

/* --------------------------------------------------------------------------
   Infrastructure Section Icons
   -------------------------------------------------------------------------- */
.bi-qr-code { color: var(--primary) !important; }
.bi-activity { color: var(--success) !important; }
.bi-journal-code { color: var(--warning) !important; }
.bi-plug { color: var(--accent) !important; }
.bi-flag { color: var(--purple) !important; }
.bi-speedometer2 { color: var(--accent) !important; }

/* --------------------------------------------------------------------------
   Use Cases Section Icons
   -------------------------------------------------------------------------- */
.bi-shop { color: var(--primary) !important; }
.bi-truck { color: var(--success) !important; }
.bi-people { color: var(--warning) !important; }
.bi-cash-coin { color: var(--accent) !important; }
.bi-bank { color: var(--purple) !important; }
.bi-government { color: var(--accent) !important; }

/* --------------------------------------------------------------------------
   How It Works Section
   -------------------------------------------------------------------------- */
#how-it-works {
    background: var(--bg-dark);
}

.process-step {
    position: relative;
    padding: 2rem;
    border-radius: var(--radius-xl);
    height: 100%;
}

.step-number .display-4 {
    background: linear-gradient(135deg, var(--primary-light), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.time-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    background: var(--surface-light);
    color: var(--text-secondary);
    padding: 0.375rem 0.875rem;
    border-radius: var(--radius-full);
    font-size: var(--font-size-sm);
    font-weight: 500;
    margin-top: 1rem;
}

.step-connector {
    position: absolute;
    top: 10%;
    height: 2px;
    background: var(--border-light);
    z-index: 1;
    transition: background var(--transition-base);
}

/* --------------------------------------------------------------------------
   Demo Section
   -------------------------------------------------------------------------- */
#demo {
    background: var(--bg-darker);
}

.demo-container {
    max-width: 900px;
    margin: 0 auto;
}

.demo-input-wrapper {
    display: flex;
    background: var(--surface);
    border: 2px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 0.5rem;
    transition: all var(--transition-base);
}

.demo-input-wrapper:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.demo-input {
    flex-grow: 1;
    background: none;
    border: none;
    padding: 1rem 1.5rem;
    font-size: var(--font-size-lg);
    color: var(--text-primary);
}

.demo-input:focus {
    outline: none;
}

.demo-output {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    min-height: 300px;
    padding: 3rem;
}

/* --------------------------------------------------------------------------
   Use Cases Section
   -------------------------------------------------------------------------- */
#use-cases {
    background: var(--bg-dark);
}

.use-case-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 2rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: all var(--transition-base);
}

.use-case-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
    box-shadow: 0 15px 30px rgba(6, 182, 212, 0.1);
}

.use-case-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    margin-bottom: 1.5rem;
}

.metric-highlight {
    background: var(--bg-darker);
    border-left: 3px solid var(--success);
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
}

/* --------------------------------------------------------------------------
   Tables (Personas & Integration Points)
   -------------------------------------------------------------------------- */
.table-dark {
    background-color: var(--surface);
    color: var(--text-primary);
}

.table-dark thead {
    background-color: var(--bg-darker);
}

.table-dark tbody tr {
    border-bottom: 1px solid var(--border);
    transition: background-color var(--transition-fast);
}

.table-dark tbody tr:hover {
    background-color: rgba(59, 130, 246, 0.05);
}

.table-dark th {
    font-weight: 600;
    color: var(--text-primary);
    padding: 1rem;
}

.table-dark td {
    padding: 1rem;
    color: var(--text-secondary);
}

.bg-gray-900 {
    background-color: var(--bg-darker) !important;
}

/* --------------------------------------------------------------------------
   Code Blocks & Pre
   -------------------------------------------------------------------------- */
pre {
    background: var(--bg-darker) !important;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    overflow-x: auto;
    font-family: 'SF Mono', 'Courier New', monospace;
    font-size: var(--font-size-sm);
    line-height: 1.6;
}

code {
    color: var(--primary-light);
    font-family: 'SF Mono', 'Courier New', monospace;
}

/* --------------------------------------------------------------------------
   Badges
   -------------------------------------------------------------------------- */
.badge {
    border-radius: var(--radius-md);
    padding: 0.5rem 1rem;
    font-weight: 600;
    font-size: var(--font-size-sm);
}

.badge.bg-success {
    background: var(--success) !important;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
footer {
    background: var(--bg-darker);
    border-top: 1px solid var(--border);
    padding: 4rem 0 2rem;
}

footer a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

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

.social-links a {
    font-size: var(--font-size-xl);
    color: var(--text-muted);
}

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

/* --------------------------------------------------------------------------
   Scrollbar Styling
   -------------------------------------------------------------------------- */
#hero-task-feed {
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

#hero-task-feed::-webkit-scrollbar {
    width: 0;
    height: 0;
}

#hero-task-feed:hover::-webkit-scrollbar {
    width: 6px;
}

#hero-task-feed:hover::-webkit-scrollbar-track {
    background: transparent;
}

#hero-task-feed:hover::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.25);
    border-radius: 4px;
}

#hero-task-feed:hover::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.45);
}

#hero-task-feed:hover {
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.25) transparent;
}

/* --------------------------------------------------------------------------
   Responsive Design
   -------------------------------------------------------------------------- */
@media (max-width: 991.98px) {
    .hero-section {
        padding: 6rem 0 4rem;
    }
    
    .display-3 {
        font-size: var(--font-size-4xl) !important;
    }
    
    .navbar-collapse {
        background: var(--bg-dark);
        padding: 1rem 0;
        border-radius: var(--radius-lg);
        margin-top: 1rem;
    }
    
    .navbar-nav {
        padding: 0 1rem;
    }

    .nav-link {
        padding: 0.75rem 1rem;
    }

    .d-lg-flex {
        display: none !important;
    }

    .cta-group {
        flex-direction: column;
    }
}

@media (max-width: 575.98px) {
    .display-3 {
        font-size: var(--font-size-3xl) !important;
    }
    
    .btn-lg {
        width: 100%;
    }

    .logo-grid {
        justify-content: center;
    }
    
    .section-title {
        font-size: var(--font-size-3xl);
    }
}

/* --------------------------------------------------------------------------
   Utility Color Classes
   -------------------------------------------------------------------------- */
.text-primary { color: var(--primary) !important; }
.text-success { color: var(--success) !important; }
.text-warning { color: var(--warning) !important; }
.text-danger { color: var(--danger) !important; }
.text-info { color: var(--accent) !important; }

.bg-primary { background-color: var(--primary) !important; }
.bg-success { background-color: var(--success) !important; }
.bg-warning { background-color: var(--warning) !important; }
.bg-danger { background-color: var(--danger) !important; }
.bg-info { background-color: var(--accent) !important; }
.bg-purple { background-color: var(--purple) !important; }

.bg-dark {
    background-color: var(--bg-darker) !important;
}

/* ============================================================================
   END OF NEXBIT THEME CSS
   ============================================================================ */