/* ========== SERVICES ========== */
.services-head { align-items: center; }
.services-sub { align-self: center; }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.services-more { display: flex; justify-content: center; margin-top: 28px; }
.services-more-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 18px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  font-size: 11px;
  color: var(--text-2);
  letter-spacing: 0.08em;
  background: var(--surface);
  transition: all .2s;
}
.services-more-btn:hover { color: var(--accent); border-color: var(--accent-line); }
.service-card {
  background: var(--bg);
  padding: 32px 28px;
  display: flex; flex-direction: column;
  gap: 14px;
  min-height: 240px;
  transition: background .25s;
  position: relative;
}
.service-card::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 50% at 50% 0%, var(--accent-dim), transparent 70%);
  opacity: 0;
  transition: opacity .4s;
  pointer-events: none;
}
.service-card:hover { background: var(--bg-1); }
.service-card:hover::before { opacity: 1; }

.service-head {
  display: flex; align-items: center; justify-content: space-between;
}
.service-n {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.1em;
}
.service-arrow {
  color: var(--muted);
  transition: color .2s, transform .2s;
}
.service-card:hover .service-arrow {
  color: var(--accent);
  transform: translate(2px, -2px);
}

.service-title {
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.service-desc {
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.55;
  flex: 1;
}
.service-tags {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-top: 8px;
}

@media (max-width: 900px) {
  .services-grid { grid-template-columns: 1fr; }
}

/* ========== STEPS ========== */
.steps {
  list-style: none;
  position: relative;
  display: flex; flex-direction: column;
  gap: 32px;
  padding-left: 0;
}
.steps-track {
  position: absolute;
  left: 13px; top: 14px; bottom: 14px;
  width: 1px;
  background: var(--border);
}
.steps-track-fill {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, var(--accent), transparent);
  height: 0%;
  transition: height 1.2s ease;
}
.steps.in .steps-track-fill { height: 100%; }

.step {
  display: grid;
  grid-template-columns: 28px 1fr 260px;
  gap: 24px;
  align-items: flex-start;
}
.step-artifact {
  padding: 4px 0;
}
.artifact {
  border: 1px solid var(--border);
  background: linear-gradient(180deg, #101013 0%, #0a0a0c 100%);
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 11px;
  color: var(--text-2);
  min-height: 110px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.artifact-head {
  font-size: 10px; color: var(--muted); letter-spacing: 0.08em;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.artifact-body { display: flex; flex-direction: column; gap: 6px; font-family: var(--mono); font-size: 10.5px; }
.artifact-row { display: flex; gap: 8px; align-items: center; color: var(--text); }
.artifact-row.a-dim { color: var(--muted); }
.a-check { color: var(--accent); }
.artifact-foot { font-size: 10px; color: var(--muted); padding-top: 6px; border-top: 1px solid var(--border); margin-top: auto; }
.artifact-blueprint svg { width: 100%; height: 100px; }
.a-line { display: flex; justify-content: space-between; gap: 8px; font-size: 10.5px; color: var(--text-2); }
.a-ok { color: var(--accent); }
.a-warn { color: var(--warn); }
.artifact-ship { font-size: 11px; }
.a-deploy { color: var(--text); margin-bottom: 4px; font-weight: 500; }
.a-sub { color: var(--muted); padding-left: 10px; font-size: 10.5px; line-height: 1.6; }
.uptime-bar { width: 100%; height: 44px; }
@media (max-width: 900px) {
  .step { grid-template-columns: 28px 1fr; }
  .step-artifact { grid-column: 2; margin-top: 8px; }
}
.step-marker {
  width: 28px; height: 28px;
  display: grid; place-items: center;
  position: relative; z-index: 2;
  background: var(--bg);
}
.step-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--surface);
  border: 1.5px solid var(--muted);
  transition: all .3s;
}
.step.in .step-dot {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-dim);
}
.step-content {
  padding-bottom: 4px;
  display: flex; flex-direction: column; gap: 6px;
}
.step-meta {
  display: flex; align-items: center; gap: 14px;
  font-size: 10.5px;
}
.step-n { color: var(--accent); letter-spacing: 0.08em; }
.step-dur { color: var(--muted); letter-spacing: 0.05em; }
.step-title {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--text);
}
.step-desc {
  color: var(--text-2);
  font-size: 14.5px;
  line-height: 1.55;
  max-width: 640px;
}

/* ========== DEMO ========== */
.demo-tabs {
  display: flex; gap: 8px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.demo-tab {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 8px;
  font-size: 13px;
  color: var(--text-2);
  transition: all .2s;
}
.demo-tab:hover { color: var(--text); border-color: var(--accent-line); background: rgba(255,255,255,0.03); }
.demo-tab.active {
  color: var(--text);
  border-color: var(--accent-line);
  background: var(--accent-dim);
}
.demo-tab-n { color: var(--muted); font-size: 10.5px; letter-spacing: 0.1em; }
.demo-tab.active .demo-tab-n { color: var(--accent); }

.demo-canvas {
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(180deg, #0f0f12 0%, #0b0b0e 100%);
  box-shadow: 0 40px 80px -30px rgba(0,0,0,0.6);
}
.demo-canvas-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.015);
}
.demo-trigger {
  display: flex; align-items: center; gap: 10px;
  font-size: 11px;
  color: var(--text-2);
  letter-spacing: 0.06em;
}
.demo-trigger-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  animation: pulse 1.5s infinite;
}
.demo-controls { display: flex; align-items: center; gap: 14px; }
.demo-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px;
  border: 1px solid var(--border-strong);
  border-radius: 5px;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--text-2);
  letter-spacing: 0.06em;
}
.demo-btn:hover { color: var(--accent); border-color: var(--accent-line); }
.demo-rt { font-size: 10.5px; color: var(--muted); }

.demo-canvas-body {
  position: relative;
  height: 320px;
  padding-top: 30px;
  overflow: hidden;
}
.demo-bg { position: absolute; inset: 0; width: 100%; height: 100%; }
.demo-edges { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.edge-flow {
  animation: dash 1s linear infinite;
}
@keyframes dash {
  to { stroke-dashoffset: -20; }
}

.demo-node {
  position: absolute;
  height: 36px;
  display: flex; align-items: center; gap: 8px;
  padding: 0 12px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  font-size: 12px;
  color: var(--text);
  transition: all .3s;
  white-space: nowrap;
}
.demo-node:hover {
  border-color: var(--accent-line);
  background: var(--surface-2);
  transform: translateY(-1px);
}
.demo-node-badge {
  font-size: 8.5px;
  padding: 1px 5px;
  border: 1px solid;
  border-radius: 3px;
  letter-spacing: 0.08em;
  background: rgba(0,0,0,0.3);
}
.demo-node-label { font-size: 12px; font-weight: 500; }

.demo-canvas-foot {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 16px;
  border-top: 1px solid var(--border);
  font-size: 10.5px;
  color: var(--muted);
}
.demo-foot-ok { color: var(--accent); }

@media (max-width: 900px) {
  .demo-canvas-body { height: 340px; overflow-x: auto; }
}
