/* ==========================================================================
   WORKAX CONTEXT - EXCLUSIVE LANDING PAGE STYLES
   Ultra-modern Dark AI SaaS Theme
   ========================================================================== */

:root {
    --ctx-bg: #07090e;
    --ctx-bg-card: #0e131f;
    --ctx-bg-card-hover: #141b2d;
    --ctx-bg-input: #121826;
    --ctx-border: rgba(255, 255, 255, 0.08);
    --ctx-border-hover: rgba(99, 102, 241, 0.4);
    --ctx-primary: #6366f1;
    --ctx-primary-glow: rgba(99, 102, 241, 0.35);
    --ctx-accent: #06b6d4;
    --ctx-accent-purple: #a855f7;
    --ctx-success: #10b981;
    --ctx-warning: #f59e0b;
    --ctx-danger: #ef4444;
    --ctx-text-main: #f8fafc;
    --ctx-text-muted: #94a3b8;
    --ctx-text-dim: #64748b;
}

/* Page Scope Reset & Background */
body.has-context-landing {
    background-color: #07090e !important;
    color: var(--ctx-text-main);
}

.context-landing-page {
    background-color: var(--ctx-bg);
    color: var(--ctx-text-main);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    overflow-x: hidden;
    position: relative;
}

/* Fix public site wrapper spacing for index */
body.has-context-landing .site-main {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    background-color: #07090e !important;
}

body.has-context-landing .site-nav {
    background-color: #07090e !important;
    border-bottom: 1px solid var(--ctx-border) !important;
}

body.has-context-landing .site-nav .nav-link {
    color: var(--ctx-text-muted) !important;
    font-weight: 500;
    transition: color 0.2s ease;
}

body.has-context-landing .site-nav .nav-link:hover {
    color: #fff !important;
}

body.has-context-landing footer {
    background-color: #05070a !important;
    border-top: 1px solid var(--ctx-border);
    color: var(--ctx-text-muted);
}

/* Background Gradients & Mesh */
.ctx-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    min-height: 900px;
    background: 
        radial-gradient(circle at 50% -10%, rgba(99, 102, 241, 0.22) 0%, transparent 60%),
        radial-gradient(circle at 85% 15%, rgba(168, 85, 247, 0.15) 0%, transparent 45%),
        radial-gradient(circle at 15% 35%, rgba(6, 182, 212, 0.12) 0%, transparent 45%);
    pointer-events: none;
    z-index: 0;
}

.ctx-grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
    z-index: 0;
}

/* Typography & Badges */
.ctx-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(99, 102, 241, 0.12);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 9999px;
    color: #a5b4fc;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.2);
    backdrop-filter: blur(8px);
}

.ctx-pulsing-dot {
    width: 8px;
    height: 8px;
    background-color: #38bdf8;
    border-radius: 50%;
    box-shadow: 0 0 8px #38bdf8;
    animation: ctxPulse 2s infinite;
}

@keyframes ctxPulse {
    0% { transform: scale(0.95); opacity: 0.8; }
    50% { transform: scale(1.3); opacity: 1; box-shadow: 0 0 12px #38bdf8; }
    100% { transform: scale(0.95); opacity: 0.8; }
}

.ctx-title-gradient {
    background: linear-gradient(135deg, #ffffff 30%, #cbd5e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
}

.ctx-accent-gradient {
    background: linear-gradient(135deg, #60a5fa 0%, #818cf8 50%, #c084fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.ctx-subtitle {
    color: var(--ctx-text-muted);
    font-size: 1.15rem;
    line-height: 1.65;
}

/* Search Analyzer Bar */
.ctx-search-container {
    background: rgba(14, 19, 31, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    padding: 8px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    transition: all 0.3s ease;
}

.ctx-search-container:focus-within {
    border-color: rgba(99, 102, 241, 0.6);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 25px rgba(99, 102, 241, 0.35);
}

.ctx-search-input {
    background: transparent !important;
    border: none !important;
    color: #fff !important;
    font-size: 1.05rem;
    font-weight: 500;
    padding: 12px 16px;
}

.ctx-search-input::placeholder {
    color: var(--ctx-text-dim);
}

.ctx-search-input:focus {
    outline: none !important;
    box-shadow: none !important;
}

.ctx-btn-primary {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    color: #fff !important;
    border: none;
    border-radius: 12px;
    padding: 12px 24px;
    font-weight: 700;
    font-size: 0.95rem;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.ctx-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.6);
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
}

.ctx-btn-outline {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--ctx-text-main) !important;
    border-radius: 12px;
    padding: 10px 20px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.ctx-btn-outline:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.25);
    color: #fff !important;
}

/* Cards & Glassmorphism */
.ctx-card {
    background: var(--ctx-bg-card);
    border: 1px solid var(--ctx-border);
    border-radius: 20px;
    padding: 24px;
    position: relative;
    transition: all 0.3s ease;
}

.ctx-card-hover:hover {
    transform: translateY(-4px);
    border-color: var(--ctx-border-hover);
    box-shadow: 0 20px 35px rgba(0, 0, 0, 0.5), 0 0 20px rgba(99, 102, 241, 0.15);
}

.ctx-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 16px;
    background: rgba(99, 102, 241, 0.12);
    border: 1px solid rgba(99, 102, 241, 0.25);
    color: #818cf8;
}

/* Interactive Preview Box (Hero Right) */
.ctx-preview-window {
    background: #0d121e;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7), 0 0 30px rgba(99, 102, 241, 0.15);
}

.ctx-preview-header {
    background: #090d16;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding: 12px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ctx-preview-tabs {
    display: flex;
    gap: 6px;
}

.ctx-tab-btn {
    background: transparent;
    border: none;
    color: var(--ctx-text-muted);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ctx-tab-btn.active {
    background: rgba(99, 102, 241, 0.2);
    color: #a5b4fc;
    border: 1px solid rgba(99, 102, 241, 0.3);
}

/* Step Numbers */
.ctx-step-num {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    color: #fff;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.5);
    margin-bottom: 20px;
}

/* Live Stats Bar */
.ctx-stat-box {
    background: rgba(14, 19, 31, 0.6);
    border: 1px solid var(--ctx-border);
    border-radius: 16px;
    padding: 16px 20px;
    text-align: center;
}

.ctx-stat-value {
    font-size: 1.85rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
    margin-bottom: 4px;
}

.ctx-stat-label {
    font-size: 0.8rem;
    color: var(--ctx-text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* FAQ Accordion */
.ctx-faq-item {
    background: var(--ctx-bg-card);
    border: 1px solid var(--ctx-border);
    border-radius: 16px;
    margin-bottom: 12px;
    overflow: hidden;
    transition: border-color 0.2s ease;
}

.ctx-faq-item:hover {
    border-color: rgba(255, 255, 255, 0.18);
}

.ctx-faq-header {
    padding: 18px 24px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: #fff;
    user-select: none;
}

.ctx-faq-header i {
    transition: transform 0.25s ease;
    color: var(--ctx-text-muted);
}

.ctx-faq-header.open i {
    transform: rotate(180deg);
    color: var(--ctx-primary);
}

.ctx-faq-body {
    padding: 0 24px 20px 24px;
    color: var(--ctx-text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    display: none;
}

.ctx-faq-body.open {
    display: block;
}

/* Domain Analyzer Live Result Box */
#analyzerResult {
    animation: ctxFadeInUp 0.4s ease forwards;
}

@keyframes ctxFadeInUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ctx-score-circle {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    border: 4px solid #6366f1;
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.4);
    background: rgba(14, 19, 31, 0.9);
}

.ctx-check-pill {
    padding: 10px 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--ctx-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.85rem;
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
    .ctx-title-gradient {
        font-size: 2.3rem;
    }
    .ctx-search-container {
        padding: 6px;
    }
    .ctx-search-input {
        font-size: 0.95rem;
        padding: 8px 10px;
    }
    .ctx-btn-primary {
        padding: 10px 16px;
        font-size: 0.88rem;
    }
}
