/* AgentCompass - Modern Landing Page */
:root {
    --primary: #1e3a8a;
    --primary-light: #3b82f6;
    --accent: #f59e0b;
    --bg: #0a0e1a;
    --bg-card: #111827;
    --text: #f9fafb;
    --text-dim: #9ca3af;
    --border: #1f2937;
    --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-blue: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    position: relative;
}

.grain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' /%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.05'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 1;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; position: relative; z-index: 2; }

/* Header */
.header { padding: 1.5rem 0; border-bottom: 1px solid var(--border); }
.nav { display: flex; justify-content: space-between; align-items: center; }
.logo { display: flex; align-items: center; gap: 0.75rem; font-size: 1.25rem; font-weight: 700; }
.compass-icon { font-size: 1.75rem; }
.logo-text { background: var(--gradient-blue); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.gh-link { color: var(--text-dim); text-decoration: none; transition: color 0.2s; }
.gh-link:hover { color: var(--text); }

/* Hero */
.hero { padding: 8rem 0 6rem; text-align: center; }
.hero-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 2rem;
    font-size: 0.875rem;
    color: var(--accent);
    margin-bottom: 2rem;
}
.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}
.gradient-text {
    background: linear-gradient(135deg, var(--accent) 0%, #f59e0b 50%, #fbbf24 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-dim);
    max-width: 700px;
    margin: 0 auto 3rem;
    line-height: 1.7;
}
.hero-cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    border-radius: 0.5rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}
.btn-primary {
    background: var(--gradient-blue);
    color: white;
    box-shadow: 0 4px 14px 0 rgba(59, 130, 246, 0.3);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px 0 rgba(59, 130, 246, 0.4);
}
.btn-secondary {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
}
.btn-secondary:hover { border-color: var(--primary-light); }
.btn-arrow { font-size: 1.25rem; transition: transform 0.2s; }
.btn-primary:hover .btn-arrow { transform: translateX(4px); }

/* Comparison Section */
.comparison { padding: 6rem 0; }
.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    text-align: center;
    margin-bottom: 1rem;
    font-weight: 700;
}
.section-subtitle {
    text-align: center;
    font-size: 1.25rem;
    color: var(--text-dim);
    margin-bottom: 4rem;
}
.comparison-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}
.comparison-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 1rem;
    overflow: hidden;
    transition: transform 0.2s, border-color 0.2s;
}
.comparison-item:hover { transform: translateY(-4px); }
.comparison-item.highlight {
    border-color: var(--accent);
    box-shadow: 0 0 30px rgba(245, 158, 11, 0.1);
}
.comparison-label {
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.comparison-label.without { background: #1f2937; color: var(--text-dim); }
.comparison-label.with { background: linear-gradient(90deg, var(--accent), #fbbf24); color: var(--bg); }
.comparison-content {
    padding: 2rem 1.5rem;
}
.comparison-content .icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}
.comparison-content h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}
.comparison-content p {
    color: var(--text-dim);
    line-height: 1.6;
}

/* How It Works - Flow */
.how-it-works { padding: 6rem 0; background: var(--bg-card); }
.flow { display: flex; flex-direction: column; gap: 2rem; margin-top: 4rem; }
.flow-item {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 2rem;
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}
.flow-number {
    flex-shrink: 0;
    width: 3rem;
    height: 3rem;
    background: var(--gradient-blue);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
}
.flow-content { flex: 1; }
.flow-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}
.code-block {
    background: #0d1117;
    border: 1px solid #30363d;
    border-radius: 0.5rem;
    padding: 1rem;
    margin: 1rem 0;
    overflow-x: auto;
}
.code-block code {
    font-family: 'SF Mono', Monaco, monospace;
    font-size: 0.875rem;
    color: #c9d1d9;
    white-space: pre;
}
.flow-arrow {
    text-align: center;
    font-size: 2rem;
    color: var(--text-dim);
    display: none;
}

/* Features */
.features { padding: 6rem 0; }
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}
.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 2rem;
    transition: all 0.2s;
}
.feature-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary-light);
    box-shadow: 0 8px 30px rgba(59, 130, 246, 0.15);
}
.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}
.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}
.feature-card p {
    color: var(--text-dim);
    line-height: 1.6;
}

/* Table */
.compare-table { padding: 6rem 0; background: var(--bg-card); }
.table-wrapper { overflow-x: auto; }
table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg);
    border-radius: 1rem;
    overflow: hidden;
}
thead {
    background: var(--gradient-blue);
}
th, td {
    padding: 1rem 1.5rem;
    text-align: left;
}
tbody tr {
    border-bottom: 1px solid var(--border);
}
tbody tr:last-child { border-bottom: none; }
tbody tr:hover { background: var(--bg-card); }
.highlight-col {
    font-weight: 600;
    color: var(--accent);
}

/* Status */
.status-section { padding: 6rem 0; }
.status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}
.status-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 2rem;
    display: flex;
    gap: 1.5rem;
    align-items: center;
}
.status-card.done { border-color: #10b981; }
.status-card.progress { border-color: var(--accent); }
.status-card.todo { border-color: var(--text-dim); }
.status-icon { font-size: 2.5rem; }
.status-content h3 {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}
.status-content p { color: var(--text-dim); }
.cta-box {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 3rem;
    text-align: center;
    margin-top: 3rem;
}
.cta-box h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}
.cta-box p {
    color: var(--text-dim);
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

/* Footer */
.footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    padding: 4rem 0 2rem;
    margin-top: 6rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}
.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}
.footer-tagline { color: var(--text-dim); }
.footer-col h4 {
    margin-bottom: 1rem;
    color: var(--accent);
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.5rem; }
.footer-col a {
    color: var(--text-dim);
    text-decoration: none;
    transition: color 0.2s;
}
.footer-col a:hover { color: var(--text); }
.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    text-align: center;
    color: var(--text-dim);
}

@media (max-width: 768px) {
    .hero { padding: 4rem 0 3rem; }
    .hero-title { font-size: 2.5rem; }
    .hero-subtitle { font-size: 1rem; }
    .comparison-grid { grid-template-columns: 1fr; }
    .features-grid { grid-template-columns: 1fr; }
    .flow-item { flex-direction: column; }
    .status-grid { grid-template-columns: 1fr; }
    table { font-size: 0.875rem; }
    th, td { padding: 0.75rem; }
}
