/* Circuit 43 — Enterprise API */
/* Tone: Stripe/Twilio precision, integration-first, modular, enterprise-grade */

/* ── Token overrides — C43 mature enterprise tone ── */
:root {
  --accent:        #C74734;
  --accent-dark:   #a83a28;
  --accent-subtle: rgba(199, 71, 52, 0.07);
  --bg: #f8f9fb;
  --surface: #ffffff;
  --surface-2: #f1f2f5;
  --border: #e2e4e9;
  --border-strong: #c8cad1;
  --text: #0d0e12;
  --text-muted: #52546a;
  --text-dim: #9295a8;
}

/* ── Hero ── */

.c43-hero {
  background: var(--surface);
  padding: 128px 0 96px;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.c43-hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -100px;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(195,28,19,0.04) 0%, transparent 70%);
  pointer-events: none;
}

.c43-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

.c43-hero-content .product-badge {
  background: rgba(195, 28, 19, 0.06);
  border-color: rgba(195, 28, 19, 0.15);
  color: var(--accent);
}

.c43-hero-content h1 {
  margin-top: 20px;
  font-size: clamp(2.25rem, 4.5vw, 3.5rem);
}

.c43-hero-content .hero-sub {
  font-size: var(--text-lg);
  color: var(--text-muted);
  margin-top: 20px;
}

.c43-hero-content .hero-ctas { margin-top: 36px; }

/* Trust indicators */
.c43-trust-row {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}

.c43-trust-item {
  font-size: var(--text-xs);
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 7px;
}

.c43-trust-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

/* API visual */
.c43-api-preview {
  background: #0d0e12;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid #1e2028;
  box-shadow: 0 24px 60px rgba(0,0,0,0.12);
}

.c43-api-preview-bar {
  background: #161720;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid #1e2028;
  font-size: var(--text-xs);
  color: #5a5c6e;
  font-family: var(--font-mono);
}

.c43-dots { display: flex; gap: 5px; }
.c43-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2a2c38;
}

.c43-api-preview-body {
  padding: 20px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.8;
}

.c43-api-preview-body .k { color: #7c6bf5; }
.c43-api-preview-body .s { color: #7ec8a0; }
.c43-api-preview-body .n { color: #e0defa; }
.c43-api-preview-body .v { color: #e8c56d; }
.c43-api-preview-body .c { color: #4a4c5e; }
.c43-api-preview-body .m { color: #f5855b; }

/* ── Capabilities ── */

.c43-caps {
  padding: 96px 0;
  background: var(--bg);
}

.c43-caps-header {
  max-width: 560px;
  margin-bottom: 56px;
}

.c43-caps-header h2 { margin-top: 16px; }
.c43-caps-header p {
  margin-top: 16px;
  color: var(--text-muted);
  font-size: var(--text-lg);
}

.c43-caps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.c43-cap {
  background: var(--surface);
  padding: 36px 32px;
  transition: background 0.15s;
}

.c43-cap:hover { background: var(--surface-2); }

.c43-cap-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(195, 28, 19, 0.07);
  border: 1px solid rgba(195, 28, 19, 0.15);
  padding: 3px 8px;
  border-radius: var(--radius);
  margin-bottom: 16px;
}

.c43-cap h4 {
  font-size: var(--text-xl);
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 12px;
}

.c43-cap p {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.65;
}

/* ── Integration section ── */

.c43-integration {
  padding: 96px 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.c43-integration-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: start;
}

.c43-integration-content h2 { margin-top: 16px; }

.c43-integration-content p {
  color: var(--text-muted);
  margin-top: 16px;
  font-size: var(--text-base);
  line-height: 1.7;
}

.c43-system-list {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.c43-system-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.c43-system-row::before {
  content: '';
  width: 20px;
  height: 1px;
  background: var(--border-strong);
  flex-shrink: 0;
}

.c43-webhook-block {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.c43-webhook-header {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  font-size: var(--text-xs);
  font-family: var(--font-mono);
  color: var(--text-dim);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.c43-webhook-tag {
  font-size: 10px;
  font-weight: 600;
  background: rgba(50, 180, 120, 0.1);
  color: #2a9e6e;
  padding: 2px 8px;
  border-radius: 3px;
  border: 1px solid rgba(50, 180, 120, 0.2);
}

.c43-webhook-body {
  padding: 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.8;
  color: var(--text-muted);
}

.c43-webhook-body .k { color: var(--text); font-weight: 500; }
.c43-webhook-body .s { color: #2a9e6e; }
.c43-webhook-body .v { color: var(--accent); }

/* ── Enterprise features ── */

.c43-enterprise {
  padding: 96px 0;
  background: var(--bg);
}

.c43-enterprise-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.c43-enterprise-content h2 { margin-top: 16px; }
.c43-enterprise-content p {
  color: var(--text-muted);
  margin-top: 16px;
  font-size: var(--text-base);
  line-height: 1.7;
}

.c43-enterprise-content .hero-ctas { margin-top: 32px; }

.c43-feature-checklist {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 8px;
}

.c43-check-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.5;
}

.c43-check-icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(195, 28, 19, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

.c43-check-icon svg {
  width: 10px;
  height: 10px;
  stroke: var(--accent);
  stroke-width: 2.5;
}

/* ── Responsive ── */

@media (max-width: 900px) {
  .c43-hero-grid,
  .c43-integration-grid,
  .c43-enterprise-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .c43-caps-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .c43-caps-grid { grid-template-columns: 1fr; }
}
