/* AI Agent Frameworks Microsite Styles */

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --bg-dark: #0f172a;
    --bg-card: #1e293b;
    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
    --border: #334155;
    --success: #22c55e;
    --warning: #eab308;
    --danger: #ef4444;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    min-height: 100vh;
}

/* Navigation */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: rgba(15, 23, 42, 0.95);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

nav .logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s;
}

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

/* Hero Section */
header {
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(180deg, rgba(99, 102, 241, 0.1) 0%, transparent 100%);
}

.hero h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero .tagline {
    font-size: 1.5rem;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

.hero .subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

/* Live Indicator */
.live-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--bg-card);
    border-radius: 9999px;
    font-size: 0.875rem;
    border: 1px solid var(--border);
}

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

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Hero Infographic */
.hero-infographic {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.infographic-img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.infographic-caption {
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* Main Content */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

section {
    margin-bottom: 4rem;
}

h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--text-main);
}

/* Framework Grid */
.framework-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.framework-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    padding: 1.5rem;
    transition: transform 0.3s, box-shadow 0.3s;
}

.framework-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    border-color: var(--primary);
}

.framework-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.framework-name {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.framework-description {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.framework-stats {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.stat {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.stat-icon {
    font-size: 1rem;
}

.stat-value {
    font-weight: 600;
    color: var(--text-main);
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.framework-details {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

.framework-language {
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
}

.framework-size {
    color: var(--text-muted);
}

.framework-link {
    display: block;
    text-align: center;
    padding: 0.75rem;
    background: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: background 0.3s;
}

.framework-link:hover {
    background: var(--primary-dark);
}

/* Comparison Table */
.table-wrapper {
    overflow-x: auto;
    border-radius: 0.5rem;
    border: 1px solid var(--border);
}

table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-card);
}

thead {
    background: rgba(99, 102, 241, 0.1);
}

th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: var(--text-main);
    border-bottom: 1px solid var(--border);
}

td {
    padding: 1rem;
    border-bottom: 1px solid var(--border);
}

tr:last-child td {
    border-bottom: none;
}

tbody tr:hover {
    background: rgba(99, 102, 241, 0.05);
}

.language-badge {
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
}

.language-badge.python { background: rgba(59, 130, 246, 0.1); color: #3b82f6; }
.language-badge.go { background: rgba(34, 197, 94, 0.1); color: #22c55e; }
.language-badge.typescript { background: rgba(249, 115, 22, 0.1); color: #f97316; }
.language-badge.rust { background: rgba(220, 38, 38, 0.1); color: #dc2626; }

.comparison-infographic {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

/* Quick Start Scenarios */
.scenarios {
    display: grid;
    gap: 2rem;
}

.scenario {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    padding: 1.5rem;
}

.scenario h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.scenario p {
    margin-bottom: 0.5rem;
}

.scenario ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 1rem;
}

.scenario li {
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-muted);
}

.scenario li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--primary);
}

.scenario pre {
    background: rgba(0, 0, 0, 0.3);
    padding: 1rem;
    border-radius: 0.5rem;
    overflow-x: auto;
    font-size: 0.875rem;
    line-height: 1.5;
}

.scenario code {
    color: var(--text-main);
}

.framework-link {
    color: var(--primary);
    text-decoration: none;
}

.framework-link:hover {
    text-decoration: underline;
}

.decision-infographic {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

/* Security Section */
.security-alert {
    background: rgba(234, 179, 8, 0.1);
    border: 1px solid var(--warning);
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1rem;
}

.security-alert strong {
    color: var(--warning);
}

.security ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 2rem;
}

.security li {
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.security li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--success);
}

.framework-security {
    margin-top: 2rem;
}

.framework-security h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.framework-security table {
    font-size: 0.875rem;
}

/* Resources Section */
.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.resource-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    padding: 1.5rem;
}

.resource-card h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.resource-card ul {
    list-style: none;
}

.resource-card li {
    margin-bottom: 0.5rem;
}

.resource-card a {
    color: var(--primary);
    text-decoration: none;
}

.resource-card a:hover {
    text-decoration: underline;
}

/* FAQ Section */
.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.faq-item h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.faq-item p {
    color: var(--text-muted);
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.875rem;
}

.footer-links {
    margin-top: 1rem;
}

.footer-links a {
    color: var(--primary);
    text-decoration: none;
}

.footer-links span {
    margin: 0 0.5rem;
    color: var(--border);
}

/* Responsive */
@media (max-width: 768px) {
    nav {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-links {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero .tagline {
        font-size: 1.25rem;
    }

    .framework-grid {
        grid-template-columns: 1fr;
    }

    .framework-stats {
        flex-direction: column;
        gap: 0.5rem;
    }

    .resources-grid {
        grid-template-columns: 1fr;
    }
}