/* ============================================================================
   AARAB v3.0 — Optimized index.css
   Complete rewrite with performance and conversion optimization
   ============================================================================ */

/* --------------------------------------------------------------------------
   CSS Variables: Centralized Design Tokens
   -------------------------------------------------------------------------- */
   :root { 
    /* Brand Colors (Utilizing Tailwind-inspired names for clarity) */
    --primary: #3b82f6;      /* Blue-500 */
    --primary-hover: #2563eb;  /* Blue-600 */
    --primary-light: #60a5fa;  /* Blue-400 */
    --secondary: #7c3aed;    /* Violet-600 */
    --accent: #06b6d4;       /* Cyan-500 */
    --success: #10b981;      /* Emerald-500 */
    --warning: #f59e0b;      /* Amber-500 */
    --danger: #ef4444;       /* Red-500 */
    --purple: #a855f7;       /* For use case/feature differentiation */

    /* Backgrounds & Surfaces */
    --bg-dark: #0a0f1e;
    --bg-darker: #050912;
    --surface: #1e293b;        /* Slate-800 */
    --surface-light: #334155;    /* Slate-700 */
    --overlay: rgba(10, 15, 30, 0.95); /* Semi-transparent dark overlay */

    /* Text Colors */
    --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); /* Alias for semantic clarity */

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

    /* Shadows & Glows */
    --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); /* Primary color glow */

    /* Transitions & Timing */
    --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;

    /* Spacing & Radius Aliases */
    --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%;
    /* Navbar height + some buffer */
    scroll-padding-top: 5.5rem; 
}

body {
    min-height: 100vh;
    /* Subtle 3D background gradient for depth */
    padding-top: 60px; /* adjust between 56–70px depending on your exact navbar size */
    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;
}
.navbar {
  padding-top: 0.35rem !important;
  padding-bottom: 0.35rem !important;
}
.navbar-brand img {
  height: 36px !important;
  width: auto !important;
}
.navbar-brand {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

/* General 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 (Performance & Accessibility)
   -------------------------------------------------------------------------- */
.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; /* Specific color for feature icons */
}

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

/* --------------------------------------------------------------------------
   Navigation & Header
   -------------------------------------------------------------------------- */
.navbar {
    background: var(--overlay);
    /* High-performance blur effect */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 0.75rem 0;
    z-index: 1000;
}

.navbar-brand {
    color: var(--text-primary);
    font-size: var(--font-size-xl);
    font-weight: 700;
}

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

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

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

/* --------------------------------------------------------------------------
   Buttons & CTA Styles
   -------------------------------------------------------------------------- */
.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; /* Ensure consistent border height */
    transition: all var(--transition-fast);
}

.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);
}

.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: High-Impact & Conversion Focused
   -------------------------------------------------------------------------- */
.hero-section {
    padding: 8rem 0 6rem;
    position: relative;
    overflow: hidden;
}

/* Subtle background spotlight for focus */
.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 {
    /* Text background clip for hero title emphasis */
    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);
}

/* Hero Visual Card (Right-hand side) */
.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-fast);
}

.ai-pulse {
    width: 12px;
    height: 12px;
    background: var(--success);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.1); }
}

.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;
}

.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 (Consistent Card Styling)
   -------------------------------------------------------------------------- */
#features {
    background: var(--bg-darker);
}

.feature-card {
    /* Overrides generic .feature-card to match section styling */
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 2rem;
    height: 100%;
    transition: all var(--transition-base);
}

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

.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);
}

/* Specific icon background colors for visual grouping */
.feature-card .bi-search { color: var(--primary); background: rgba(59, 130, 246, 0.1); }
.feature-card .bi-lightbulb { color: var(--success); background: rgba(16, 185, 129, 0.1); }
.feature-card .bi-file-earmark-text { color: var(--warning); background: rgba(245, 158, 11, 0.1); }
.feature-card .bi-shield-check { color: var(--accent); background: rgba(6, 182, 212, 0.1); }
.feature-card .bi-arrow-repeat { color: var(--purple); background: rgba(168, 85, 247, 0.1); }
.feature-card .bi-graph-up { color: var(--danger); background: rgba(239, 68, 68, 0.1); }

.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;
}

/* --------------------------------------------------------------------------
   How It Works Section (Process Flow)
   -------------------------------------------------------------------------- */
#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;
}

/* Connector line for large screens */
.step-connector {
    position: absolute;
    top: 10%;
    height: 2px;
    background: var(--border-light);
    z-index: 1;
    transition: background var(--transition-base);
}

/* Specific connector positioning using pseudo-elements or specific classes 
   (Simplified here to rely on the responsive grid and d-lg-block utility) */

/* --------------------------------------------------------------------------
   Demo Section (Interactive Area)
   -------------------------------------------------------------------------- */
#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);
}

/* --------------------------------------------------------------------------
   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);
}

/* --------------------------------------------------------------------------
   Media Queries for Responsiveness
   -------------------------------------------------------------------------- */
@media (max-width: 991.98px) {
    /* Tablet and below */
    .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; /* Hide desktop CTA in collapsed menu */
    }

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

@media (max-width: 575.98px) {
    /* Mobile */
    .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);
    }
}
/* ==========================================================================
   Hero Task Feed — Invisible Scrollbar (Production)
   Scroll enabled, scrollbar hidden by default
   Appears subtly on hover
   ========================================================================== */

/* Base scroll container */
#hero-task-feed {
    overflow-y: auto;
    scrollbar-width: none;        /* Firefox */
    -ms-overflow-style: none;     /* IE / Edge (legacy) */
  }
  
  /* Hide scrollbar (WebKit) */
  #hero-task-feed::-webkit-scrollbar {
    width: 0;
    height: 0;
  }
  
  /* ──────────────────────────────────────────────
     Show scrollbar on user intent (hover)
     ────────────────────────────────────────────── */
  
  #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);
  }
  
  /* Firefox — show scrollbar only on hover */
  #hero-task-feed:hover {
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.25) transparent;
  }
  
/* ============================================================================
   END OF CSS
   ============================================================================ */