/* --- CSS VARIABLES --- */
:root {
    /* Corporate & Tech Palette */
    --primary: #0F172A;      /* Dark Slate (Trust, Security) */
    --primary-light: #334155;
    --accent: #4F46E5;       /* Indigo (AI/Tech) */
    --accent-hover: #4338CA;
    --success: #10B981;      /* Emerald (Compliance) */
    --bg-light: #F8FAFC;
    --white: #FFFFFF;
    --text-main: #1E293B;
    --text-muted: #64748B;
    --border: #E2E8F0;

    /* Spacing */
    --container-width: 1200px;
    --header-height: 80px;
    --radius: 8px;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-hover: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* --- RESET & BASE STYLES --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    line-height: 1.6;
    background-color: var(--white);
}

h1, h2, h3, h4 {
    color: var(--primary);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 5rem 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-subtitle {
    text-align: center;
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto 4rem auto;
}

/* --- BUTTONS --- */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    border: 2px solid transparent;
    text-align: center;
}

.btn-primary {
    background-color: var(--accent);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-outline {
    border-color: var(--border);
    color: var(--primary);
}

.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.btn.large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* --- NAVIGATION --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    height: var(--header-height);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.05em;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    font-weight: 500;
    color: var(--text-main);
}

.nav-links a:hover {
    color: var(--accent);
}

.btn-nav {
    background-color: var(--primary);
    color: var(--white) !important;
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--primary);
    margin: 5px 0;
}

/* --- HERO SECTION --- */
.hero {
    padding-top: calc(var(--header-height) + 4rem);
    padding-bottom: 5rem;
    background: radial-gradient(circle at top right, #e0e7ff, #ffffff);
    overflow: hidden;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.1;
}

.highlight {
    color: var(--accent);
    background: linear-gradient(120deg, rgba(79, 70, 229, 0.1) 0%, rgba(79, 70, 229, 0.1) 100%);
    background-repeat: no-repeat;
    background-size: 100% 0.3em;
    background-position: 0 88%;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    margin: 2rem 0;
}

.badge {
    display: inline-block;
    background: #dbeafe;
    color: var(--accent);
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

/* Hero Visual */
.hero-visual {
    position: relative;
}

.card-float {
    background: white;
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-hover);
    max-width: 350px;
    margin: 0 auto;
    text-align: center;
    border: 1px solid var(--border);
    animation: float 6s ease-in-out infinite;
}

.agent-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.status {
    font-size: 0.875rem;
    color: var(--success);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.task {
    color: var(--text-main);
    font-weight: 500;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

/* --- PROBLEM SECTION --- */
.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.problem-card {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: var(--radius);
    transition: transform 0.3s ease;
}

.problem-card:hover {
    transform: translateY(-5px);
}

.problem-card .icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.challenge-group + .challenge-group {
    margin-top: 3rem;
}

.challenge-group-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--border);
}

.problem-card ul li {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 0.4rem;
    padding-left: 1rem;
    position: relative;
}

.problem-card ul li::before {
    content: "•";
    color: var(--accent);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* --- SOLUTION / COWORKERS --- */
.solution-dark {
    background-color: var(--primary);
    color: var(--white);
}

.solution-dark h2, .solution-dark h3, .solution-dark p {
    color: var(--white);
}

.solution-dark .check-list li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.solution-dark .check-list li::before {
    content: "✓";
    color: var(--success);
    margin-right: 10px;
    font-weight: bold;
}

.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

/* Agent Diagram */
.agent-diagram {
    position: relative;
    width: 300px;
    height: 300px;
    margin: 0 auto;
    border: 2px dashed rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.agent-center {
    background: var(--white);
    color: var(--primary);
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 2;
    font-weight: bold;
    text-align: center;
}

.satellite-item {
    position: absolute;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(5px);
    padding: 10px 15px;
    border-radius: 50px;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(255,255,255,0.2);
}

/* Positioning satellites */
.satellite-item:nth-child(1) { top: -20px; left: 50%; transform: translateX(-50%); }
.satellite-item:nth-child(2) { bottom: 50px; right: -30px; }
.satellite-item:nth-child(3) { bottom: 50px; left: -30px; }

.satellite-icon {
    background: var(--accent);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.7rem;
    color: white;
}

/* --- DOMAINS / FEATURES --- */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.feature-card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    transition: all 0.3s ease;
    background: var(--white);
}

.feature-card:hover {
    box-shadow: var(--shadow-hover);
    border-color: var(--accent);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.tag {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: var(--bg-light);
    padding: 4px 8px;
    border-radius: 4px;
    color: var(--text-muted);
}

.feature-card ul li {
    margin-bottom: 0.75rem;
    position: relative;
    padding-left: 20px;
    font-size: 0.95rem;
}

.feature-card ul li::before {
    content: "•";
    color: var(--accent);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.highlight-card {
    border: 2px solid var(--accent);
    background: #f5f3ff;
}

.cta-card {
    background: var(--primary);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.cta-card h3, .cta-card p, .cta-card .text-link {
    color: white;
}

.text-link {
    font-weight: bold;
    margin-top: auto;
    text-decoration: underline;
}

/* --- FEATURE LIST --- */
.bg-light {
    background-color: var(--bg-light);
}

.feature-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.feature-item {
    display: flex;
    gap: 1.5rem;
    background: white;
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.f-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

/* --- COMPARISON TABLE --- */
.comparison-wrapper {
    overflow-x: auto;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.comparison-table th, .comparison-table td {
    padding: 1.25rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.comparison-table th {
    background: var(--bg-light);
    font-weight: 700;
}

.col-highlight {
    background-color: #eff6ff;
    color: var(--accent);
    font-weight: 700;
    border-left: 2px solid var(--accent);
    border-right: 2px solid var(--accent);
}

/* --- ROI STATS --- */
.stats-section {
    background: var(--primary);
    color: white;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
}

.stats-section p {
    color: #94a3b8;
}

/* --- PRICING --- */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    align-items: start;
}

.pricing-card {
    background: white;
    padding: 3rem 2rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    text-align: center;
    position: relative;
}

.pricing-card.featured {
    border: 2px solid var(--accent);
    box-shadow: var(--shadow-hover);
    transform: scale(1.05);
    z-index: 10;
}

.badge-popular {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.price {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 1.5rem 0;
    color: var(--primary);
}

.pricing-card ul {
    margin: 2rem 0;
    text-align: left;
}

.pricing-card ul li {
    margin-bottom: 1rem;
    padding-left: 25px;
    position: relative;
}

.pricing-card ul li::before {
    content: "✓";
    color: var(--success);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.pricing-card .btn {
    width: 100%;
    display: block;
}

/* --- CONTACT & FOOTER --- */
.contact-box {
    background: var(--bg-light);
    padding: 4rem;
    border-radius: var(--radius);
    text-align: center;
}

.contact-details {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin: 2rem 0;
}

.contact-item {
    color: var(--text-main);
    font-weight: 500;
}

.contact-item a {
    color: var(--accent);
}

footer {
    background: var(--primary);
    color: #94a3b8;
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-col h4 {
    color: white;
    margin-bottom: 1.5rem;
}

.footer-col ul li {
    margin-bottom: 0.75rem;
}

.footer-col ul li a:hover {
    color: white;
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.875rem;
}

/* --- RESPONSIVE --- */
@media (max-width: 992px) {
    .hero-content, .split-layout, .feature-list {
        grid-template-columns: 1fr;
    }
    
    .grid-4, .grid-3, .pricing-grid, .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero h1 { font-size: 2.5rem; }
    .hero-visual { display: none; } /* Simplify on tablet/mobile */
    .pricing-card.featured { transform: none; }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .hamburger { display: block; }
    
    .grid-4, .grid-3, .pricing-grid, .stats-grid, .footer-content {
        grid-template-columns: 1fr;
    }
    
    .comparison-table {
        font-size: 0.875rem;
    }
    
    .section { padding: 3rem 0; }
}

 /* Styles to support the new worker card grid within the existing design */
        .worker-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
            gap: 1.5rem;
            margin-top: 3rem;
        }
        .worker-card {
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.1);
            padding: 1.5rem;
            border-radius: 1rem;
            display: flex;
            flex-direction: column;
            transition: transform 0.3s ease;
        }
        .worker-card:hover {
            transform: translateY(-5px);
            background: rgba(255, 255, 255, 0.08);
        }
        .worker-card h3 {
            color: #fff;
            margin: 1rem 0;
            font-size: 1.25rem;
        }
        .category-tag {
            background: var(--primary-color, #3b82f6);
            color: white;
            padding: 2px 8px;
            border-radius: 4px;
            font-size: 0.75rem;
            text-transform: uppercase;
            font-weight: 700;
        }
        .task-list {
            list-style: none;
            padding: 0;
            margin-bottom: 1.5rem;
            flex-grow: 1;
        }
        .task-list li {
            color: #cbd5e1;
            font-size: 0.9rem;
            margin-bottom: 0.5rem;
            padding-left: 1.2rem;
            position: relative;
        }
        .task-list li::before {
            content: "→";
            position: absolute;
            left: 0;
            color: var(--primary-color, #3b82f6);
        }
        .powered-by {
            font-size: 10px;
            color: #64748b;
            font-family: monospace;
            font-style: italic;
        }
        .border-dashed {
            border-style: dashed;
            border-color: rgba(99, 102, 241, 0.5);
        }
        .flex { display: flex; }
        .justify-between { justify-content: space-between; }
        .mb-4 { margin-bottom: 1rem; }
        .text-2xl { font-size: 1.5rem; }

/* --- LANGUAGE SELECTOR --- */
.language-selector {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: 1rem;
    padding-left: 1rem;
    border-left: 1px solid var(--border);
}

.language-selector a {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-muted);
    border-radius: 4px;
    transition: all 0.2s ease;
}

.language-selector a:hover {
    color: var(--accent);
    background-color: var(--bg-light);
}

.language-selector a.active {
    color: var(--white);
    background-color: var(--accent);
}

/* Footer Language Selector */
.footer-language {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 2rem;
}

.footer-language span {
    color: #94a3b8;
    font-size: 0.875rem;
}

.footer-language a {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #94a3b8;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    transition: all 0.2s ease;
}

.footer-language a:hover {
    color: var(--white);
    border-color: var(--accent);
}

.footer-language a.active {
    color: var(--white);
    background-color: var(--accent);
    border-color: var(--accent);
}

/* Responsive language selector */
@media (max-width: 768px) {
    .language-selector {
        position: absolute;
        top: 1rem;
        right: 4rem;
        margin-left: 0;
        padding-left: 0;
        border-left: none;
    }
}