/* Cortex — Page-specific styles */

/* Cyan accent for this page */
.cx-accent { color: #06b6d4; }
.cx-accent-bg { background: rgba(6, 182, 212, 0.08); color: #06b6d4; }

/* Feature grid */
.cx-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
}
.cx-feature-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 1.75rem;
  box-shadow: var(--shadow-card);
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}
.cx-feature-card:hover {
  border-color: rgba(6, 182, 212, 0.3);
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-4px);
}
.cx-feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  font-size: 1.2rem;
  margin-bottom: 16px;
}
.cx-feature-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}
.cx-feature-card p {
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.65;
}

/* Benchmark table */
.benchmark-table {
  width: 100%;
  border-collapse: collapse;
}
.benchmark-table th,
.benchmark-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 0.85rem;
}
.benchmark-table th {
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.benchmark-table td:first-child {
  font-weight: 600;
}
.benchmark-table td:nth-child(2) {
  color: var(--green);
  font-family: var(--font-mono);
  font-weight: 700;
}
.benchmark-table td:nth-child(3) {
  color: var(--text-secondary);
}
.benchmark-table tr:hover td {
  background: rgba(6, 182, 212, 0.03);
}

/* Tool tiers */
.cx-tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
}
.cx-tier-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 1.75rem;
  box-shadow: var(--shadow-card);
}
.cx-tier-card h3 {
  font-size: 1rem;
  margin-bottom: 0.75rem;
}
.cx-tier-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.cx-tier-card li {
  padding: 0.4rem 0;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text);
}
.cx-tier-card li::before {
  content: '\25B8';
  color: var(--cyan);
  margin-right: 8px;
}
.cx-tier-label {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 2px 8px;
  border-radius: 6px;
  margin-bottom: 12px;
}
.cx-tier-1 { background: rgba(6, 182, 212, 0.1); color: var(--cyan); }
.cx-tier-2 { background: rgba(0, 113, 227, 0.08); color: var(--accent); }
.cx-tier-3 { background: rgba(245, 158, 11, 0.08); color: var(--orange); }

/* Architecture diagram */
.cx-arch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  max-width: 1000px;
  margin: 0 auto;
}
.cx-arch-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.25rem;
  text-align: center;
  transition: border-color 0.3s, transform 0.3s;
}
.cx-arch-item:hover {
  border-color: rgba(6, 182, 212, 0.3);
  transform: translateY(-2px);
}
.cx-arch-item h4 {
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
}
.cx-arch-item p {
  color: var(--text-secondary);
  font-size: 0.8rem;
  line-height: 1.5;
}
.cx-arch-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan);
  font-size: 1.5rem;
}

/* Showcase gallery (matches neural-graph page) */
.showcase-gallery {
  display: flex;
  flex-direction: column;
  gap: 48px;
  max-width: 1100px;
  margin: 0 auto;
}
.showcase-gallery .screenshot {
  margin: 0 auto;
  padding: 0;
  max-width: 100%;
}
.showcase-gallery .screenshot img {
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  display: block;
}
.showcase-gallery figcaption {
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin-top: 16px;
}

/* Agent chips */
.cx-agents-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  max-width: 700px;
  margin: 0 auto;
}
.cx-agent-chip {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 0.5rem 1.25rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  box-shadow: var(--shadow-card);
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}
.cx-agent-chip:hover {
  border-color: rgba(6, 182, 212, 0.4);
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}

@media (max-width: 900px) {
  .cx-features-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .cx-features-grid { grid-template-columns: 1fr; }
  .cx-arch-grid { grid-template-columns: 1fr 1fr; }
}
